* lrde-upload.sh: Retrieve the package version from configure.ac.

This commit is contained in:
Alexandre Duret-Lutz 2012-01-06 11:35:52 +01:00
parent 0ca40d72d7
commit 253e38ae7d
2 changed files with 8 additions and 1 deletions

View file

@ -14,10 +14,13 @@ case $rev in
*) rev="-$rev";;
esac
# Retrieve the package version
VERSION=`autoconf --trace='AC_INIT:$2'`
rm -rf /lrde/dload/spot/spot-snapshot$rev.tmp
cp -pR doc/spot.html /lrde/dload/spot/spot-snapshot$rev.tmp
chmod -R a+rX /lrde/dload/spot/spot-snapshot$rev.tmp
mv -f spot-*.tar.gz /lrde/dload/spot/spot-snapshot$rev.tar.gz
mv -f spot-$VERSION.tar.gz /lrde/dload/spot/spot-snapshot$rev.tar.gz
chmod a+rX /lrde/dload/spot/spot-snapshot$rev.tar.gz
rm -rf /lrde/dload/spot/spot-snapshot$rev.html
mv -f /lrde/dload/spot/spot-snapshot$rev.tmp /lrde/dload/spot/spot-snapshot$rev.html