-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
- Loading branch information
1 parent
8c03f7e
commit e374915
Showing
5 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
git clean -xfd | ||
build/build.sh | ||
make check | ||
make distcheck | ||
version=$(ls -1 par2cmdline*.tar.gz | tail -n1 | sed -e 's/par2cmdline-\([0-9\.]\+\)\.tar\.gz/\1/') | ||
mkdir -p ../par2release | ||
mv par2cmdline-$version.tar.gz ../par2release | ||
( | ||
cd ../par2release | ||
gzcat par2cmdline-$version.tar.gz | bzip2 > par2cmdline-$version.tar.bz2 | ||
) | ||
git clean -xfd | ||
build/build-win32.sh | ||
mv par2.exe ../par2release | ||
( | ||
cd ../par2release | ||
zip par2cmdline-$version-win-x86.zip par2.exe | ||
rm par2.exe | ||
) | ||
git clean -xfd | ||
build/build-win64.sh | ||
mv par2.exe ../par2release | ||
( | ||
cd ../par2release | ||
zip par2cmdline-$version-win-x64.zip par2.exe | ||
rm par2.exe | ||
) | ||
|
||
( | ||
cd ../par2release | ||
sha512sum *.tar* *.zip > checksums.sha512 | ||
for file in *.tar* *.zip; do | ||
gpg --detach-sign $file | ||
done | ||
) | ||
|
||
git tag -a --sign v$version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters