summaryrefslogtreecommitdiff
path: root/Build/tools/update-lsr
diff options
context:
space:
mode:
Diffstat (limited to 'Build/tools/update-lsr')
-rwxr-xr-xBuild/tools/update-lsr22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/tools/update-lsr b/Build/tools/update-lsr
new file mode 100755
index 00000000000..de700f81cbd
--- /dev/null
+++ b/Build/tools/update-lsr
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $Id$
+# Originally written 2004, Karl Berry. Public domain.
+#
+# Update ls-R files. Called from tlrebuild and also karl@tug's cron.
+
+mydir=`dirname $0`
+tools=`cd $mydir && pwd`
+PATH=$tools:$PATH; export PATH
+umask 0
+
+master=`cd $mydir/.. && pwd`
+cd $master || exit 1
+
+# generate new.
+./bin/i386-linux/mktexlsr
+
+# if texmf-var exists, it's not part of the distribution.
+test -f texmf-var/ls-R && svn revert texmf-var/ls-R
+
+# if we have changes, submit to repository (frightening but necessary).
+svn commit -m'update-lsr autoupdate' texmf*/ls-R