summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2010-04-04 13:55:46 +0000
committerTaco Hoekwater <taco@elvenkind.com>2010-04-04 13:55:46 +0000
commitf372862c42d234710b6057449b46818e63181c90 (patch)
treea9ebec66dd31ac37aed442502ebd1b9fe76245ec /Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh
parent2dad291ab056f30816e0aea61970f38033c2f6a5 (diff)
import luatex 0.60.0 (with small local changes, see luatexdir/ChangeLog)
and do an autoreconf git-svn-id: svn://tug.org/texlive/trunk@17680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh')
-rwxr-xr-xBuild/source/texk/web2c/luatexdir/getluatexsvnversion.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh b/Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh
new file mode 100755
index 00000000000..a59bc81db56
--- /dev/null
+++ b/Build/source/texk/web2c/luatexdir/getluatexsvnversion.sh
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+# This script should be run within the source directory.
+
+$DEBUG
+
+FILE="texk/web2c/luatexdir/luatex_svnversion.h"
+
+LANG=C
+if [ ! -r $FILE ]
+then
+ echo '#define luatex_svn_revision -1' > $FILE
+fi
+if ( [ -d ./.svn ] && svnversion > /dev/null )
+then
+ # svn up > /dev/null
+ DEFREV=`cat $FILE`
+ SVNREV=`svnversion -c . | sed -ne 's/^[0-9]*:*\([0-9]*\).*/#define luatex_svn_revision \1/p'`
+ test "$DEFREV" != "$SVNREV" && echo "$SVNREV" > $FILE
+elif ( [ -f ../.git/refs/remotes/git-svn ] && git svn --version > /dev/null )
+then
+ DEFREV=`cat $FILE`
+ SVNREV=`git svn info | sed -ne 's/^Revision: \([0-9]*\).*$/#define luatex_svn_revision \1/p'`
+ test "$DEFREV" != "$SVNREV" && echo "$SVNREV" > $FILE
+fi