keep autoconf version around for finding the dist tarball

This commit is contained in:
Benjamin Dauvergne 2013-09-27 16:11:58 +02:00
parent 97b707b162
commit c11e9ad2b3
1 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,8 @@ elif [ -f "configure.ac" ]; then
./autogen.sh
make all
PROJECT_NAME=`./configure --version | head -n1 | sed 's/ configure.*//'`
PROJECT_VERSION=`./configure --version | head -n1 | sed 's/.* configure //;s/-/./g'`
PROJECT_AC_VERSION=`./configure --version | head -n1 | sed 's/.* configure //'`
PROJECT_VERSION=`echo $PROJECT_AC_VERSION | sed 's/-/./g'`
PROJECT_FULL_NAME=$PROJECT_NAME
else
echo Unsupported project type
@ -208,7 +209,7 @@ for DIST in $DISTS; do
mv dist/$PROJECT_FULL_NAME.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
elif [ -f './configure.ac' ]; then
make dist-bzip2
mv $PROJECT_NAME-$PROJECT_VERSION.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
mv $PROJECT_NAME-$PROJECT_AC_VERSION.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
else
echo Unsupported project type
exit 1