bootstrap: script argument to define the PACKAGE_SUFFIX

This commit is contained in:
Viktor Tarasov 2012-06-04 14:30:03 +02:00
parent 2249cfde72
commit 92e0c94c3b
1 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,11 @@ set -x
if test -f Makefile; then
make distclean
fi
rm -rf *~ *.cache *.m4 config.guess config.log \
config.status config.sub depcomp ltmain.sh
rm -rf *~ *.cache *.m4 config.guess config.log config.status config.sub depcomp ltmain.sh
if test ! -z "$1"; then
cp configure.ac configure.ac.orig
sed 's/^define(\[PACKAGE_SUFFIX\],\s*\[\(-[0-9a-zA-Z]*\)\])$/define(\[PACKAGE_SUFFIX\], \['$1'\])/g' configure.ac.orig > configure.ac
fi
autoreconf --verbose --install --force