summaryrefslogtreecommitdiffhomepage
path: root/win32-cross-build.sh
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2008-03-13 21:30:48 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2008-03-13 21:30:48 +0000
commit8722a24c6929366ecadd91ba253538dea2c23065 (patch)
tree93fbb303ba7e5a8c25092c76e0e4e50e522c8f1a /win32-cross-build.sh
parent0a89be14c4294d9da010569eb1246a834b464378 (diff)
- automatically add svn revision number to about window
git-svn-id: https://lampka.siedziba.pl:790/svn/repos/lingot-win32@302 455248ca-bdda-0310-9134-f4ebb693071a
Diffstat (limited to 'win32-cross-build.sh')
-rwxr-xr-xwin32-cross-build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32-cross-build.sh b/win32-cross-build.sh
index 41c290c..9c2e74b 100755
--- a/win32-cross-build.sh
+++ b/win32-cross-build.sh
@@ -1,5 +1,8 @@
#!/bin/sh
-export CFLAGS='-I../../portaudio/include/ -I../../pthreads-w32-2-8-0-release/ -DPORTAUDIO'
+STAT=$(svn status)
+test "x$STAT" == "x" || PLUS="+"
+REV=$(svn info | grep Revision | cut -d' ' -f2)$PLUS
+export CFLAGS="-I../../portaudio/include/ -I../../pthreads-w32-2-8-0-release/ -DPORTAUDIO -DREV='\"r$REV\"'"
export LDFLAGS='-L../../pthreads-w32-2-8-0-release -L../../portaudio/lib/.libs'
./configure --host=i386-mingw32 --enable-nls