|
|
@@ -9,7 +9,13 @@ set -e |
|
|
|
# Clean up our working directory |
|
|
|
PROJECT="ThePimp" |
|
|
|
SRCDIR="`pwd`" |
|
|
|
DIRNAME="${PROJECT}-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|
|
|
VERSION="`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|
|
|
if [ -f .git/svn/trunk/unhandled.log ]; then |
|
|
|
VERSION="${VERSION}-`grep '^r' .git/svn/trunk/unhandled.log | tail -n 1`" |
|
|
|
elif [ -f .svn/entries ]; then |
|
|
|
VERSION="${VERSION}-r`head -n 4 .svn/entries | tail -n 1`" |
|
|
|
fi |
|
|
|
DIRNAME="${PROJECT}-${VERSION}" |
|
|
|
INSTALLDIR="`pwd`/${DIRNAME}" |
|
|
|
BUILDDIR="${INSTALLDIR}/build" |
|
|
|
rm -Rf "${INSTALLDIR}" |
|
|
|