All pastes #16781 Raw Edit

Something

public text v1 · immutable
#16781 ·published 2005-07-03 12:53 UTC
rendered paste body
===================================================================
--- configure   (revision 6757)
+++ configure   (working copy)
@@ -2594,6 +2594,15 @@
   echo "#define MYTH_BUILD_CONFIG \"$CCONFIG\"" >>$TMPH
 fi

+if test -f .svn/entries ; then
+  MYTH_BINARY_VERSION=`grep "url=" .svn/entries  |sed -e 's/.*branches\/\([^/]*\).*/branch-\1/' -e 's/.*tags\/\([^/]*\).*/\1/'  -e 's/.*\(trunk\)\/.*/\1/'`
+  MYTH_BINARY_VERSION=$MYTH_BINARY_VERSION.`grep "committed-date" .svn/entries | head -n 1 | sed -e 's/^ *committed-date=\"//' -e 's/T.*//'`
+  MYTH_BINARY_VERSION=$MYTH_BINARY_VERSION.`grep "committed-rev" .svn/entries | head -n 1 | sed -e 's/^ *committed-rev=\"//' -e 's/\"//'`
+else
+  MYTH_BINARY_VERSION="Unknown"
+fi
+echo "#define MYTH_BINARY_VERSION \"$MYTH_BINARY_VERSION\"" >>$TMPH
+
 if test x"$CONFIG_DEFINES" != x"" ; then
   echo "CONFIG_DEFINES=$CONFIG_DEFINES" >> $MYTH_CONFIG_MAK
 fi