eobuilder: add Makefile only support

This commit is contained in:
Jérôme Schneider 2013-10-22 14:43:29 +02:00
parent 2d4c5d9de4
commit 1da5f72d0e
1 changed files with 7 additions and 0 deletions

View File

@ -138,6 +138,10 @@ elif [ -f "configure.ac" ]; then
PROJECT_AC_VERSION=`./configure --version | head -n1 | sed 's/.* configure //'`
PROJECT_VERSION=`echo $PROJECT_AC_VERSION | sed 's/-/./g'`
PROJECT_FULL_NAME=$PROJECT_NAME
elif [ -f "Makefile" ]; then
PROJECT_NAME=`make name`
PROJECT_VERSION=`make version`
PROJECT_FULL_NAME=`make fullname`
else
echo Unsupported project type
exit 1
@ -210,6 +214,9 @@ for DIST in $DISTS; do
elif [ -f './configure.ac' ]; then
make dist-bzip2
mv $PROJECT_NAME-$PROJECT_AC_VERSION.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
elif [ -f './Makefile' ]; then
make dist-bzip2
mv sdist/$PROJECT_FULL_NAME.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
else
echo Unsupported project type
exit 1