* contrib/release: Cleanup, use lzip instead of xz

This commit is contained in:
Tim Rühsen 2017-10-27 11:26:37 +02:00
parent ba6b44f674
commit 2486320a2a

View File

@ -1,14 +1,28 @@
#!/bin/bash -e #!/bin/bash -e
# #
# Written 2016 by Tim Ruehsen # Written 2016 by Tim Ruehsen
#
# To get the version number right: add a signed tag and
# make sure the working dir is clean (git diff).
# If that fails, put the version into '.tarball-version'.
extensions="gz xz" export CFLAGS="-g -O2 -Wall"
echo
echo "* Bootstrap"
#./bootstrap >/dev/null
echo
echo "* Configure"
#./configure -q
extensions="gz lz"
app_name=$(grep "^PACKAGE_NAME='" configure|cut -d "'" -f2) app_name=$(grep "^PACKAGE_NAME='" configure|cut -d "'" -f2)
app_ver=$(grep "^PACKAGE_VERSION='" configure|cut -d "'" -f2) app_ver=$(grep "^PACKAGE_VERSION='" configure|cut -d "'" -f2)
echo "Current version of $app_name is $app_ver" echo "Current version of $app_name is $app_ver"
echo echo
echo -n "Enter Y if that is OK, else enter N and edit configure.ac: " echo -n "Is that OK ? [y/N] "
read x read x
[ "$x" != "y" -a "$x" != "Y" ] && exit 0 [ "$x" != "y" -a "$x" != "Y" ] && exit 0
@ -19,28 +33,24 @@ read x
[ "$x" != "y" -a "$x" != "Y" ] && exit 0 [ "$x" != "y" -a "$x" != "Y" ] && exit 0
echo echo
export CFLAGS="-g -O2 -Wall"
echo "* Bootstrap"
./bootstrap >/dev/null
echo "* Configure"
./configure -q
echo "* Make" echo "* Make"
make -s clean #make -s clean
make -s #make -s
echo
echo "* Make distcheck" echo "* Make distcheck"
make -s distcheck >/dev/null #make -s distcheck >/dev/null
echo
echo "* Make dist" echo "* Make dist"
make -s dist >/dev/null for ext in $extensions; do
make -s dist-xz >/dev/null [[ $ext = 'gz' ]] && ext="gzip"
[[ $ext = 'lz' ]] && ext="lzip"
make -s dist-$ext >/dev/null
done
while true; do while true; do
echo "Alpha or Regular release ? [r/A] " echo "Alpha or Regular release ? [R/A] "
read x read x
if test "$x" = "r" || test "$x" = "R"; then if test "$x" = "r" || test "$x" = "R"; then
directory="/incoming/ftp" directory="/incoming/ftp"
@ -82,10 +92,11 @@ else
done done
fi fi
unset IFS unset IFS
echo $signing_key
# fetch app_version again, just in case echo
app_ver=$(grep "^PACKAGE_VERSION='" configure|cut -d "'" -f2) echo -n "Really upload to ftp-upload.gnu.org/$directory ? "
read x
[ "$x" != "y" -a "$x" != "Y" ] && exit 0
for ext in $extensions; do for ext in $extensions; do
app_tarball="${app_name}-${app_ver}.tar.$ext" app_tarball="${app_name}-${app_ver}.tar.$ext"