add support for autoconf
This commit is contained in:
parent
861817a329
commit
66dff8d127
32
eobuilder
32
eobuilder
|
@ -127,9 +127,21 @@ echo "+ Updating git repository and parsing configuration ..."
|
|||
cd $GIT_PROJECT_PATH
|
||||
git checkout master
|
||||
git pull
|
||||
PROJECT_NAME=`python setup.py --name`
|
||||
PROJECT_VERSION=`python setup.py --version`
|
||||
PROJECT_FULL_NAME=`python setup.py --fullname`
|
||||
if [ -f "setup.py" ]; then
|
||||
PROJECT_NAME=`python setup.py --name`
|
||||
PROJECT_VERSION=`python setup.py --version`
|
||||
PROJECT_FULL_NAME=`python setup.py --fullname`
|
||||
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 //'`
|
||||
PROJECT_FULL_NAME=$PROJECT_NAME
|
||||
else
|
||||
echo Unsupported project type
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BUILD_DIR="$EOBUILDER_TMP/$PROJECT_NAME"
|
||||
COMMIT_NUMBER=`git log -n1 | grep 'commit' | sed 's/commit\s*//'`
|
||||
|
||||
|
@ -190,9 +202,17 @@ for DIST in $DISTS; do
|
|||
echo "+ Generating origin tarball ..."
|
||||
cd $GIT_PROJECT_PATH
|
||||
git checkout master
|
||||
python setup.py clean --all
|
||||
python setup.py sdist --formats=bztar
|
||||
mv $GIT_PROJECT_PATH/dist/$PROJECT_FULL_NAME.tar.bz2 ${ORIGIN_PATH}/${PACKAGE_NAME}_${PROJECT_VERSION}.orig.tar.bz2
|
||||
if [ -f './setup.py' ]; then
|
||||
python setup.py clean --all
|
||||
python setup.py sdist --formats=bztar
|
||||
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
|
||||
else
|
||||
echo Unsupported project type
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue