Browse Source

Append SVN release ID to ThePimp binaries.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3146 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 16 years ago
parent
commit
efc30fd0f0
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      build-win32

+ 7
- 1
build-win32 View File

@@ -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}"


Loading…
Cancel
Save