summaryrefslogtreecommitdiff
path: root/Build/tools/update-lsr
blob: 90a761d570a3cf130a4d0c330b2ee507dfd764e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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/../../Master && 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