summaryrefslogtreecommitdiff
path: root/Master/Tools/update-lsr
blob: de700f81cbd1baa8e923f218807a4593ee36ee10 (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/.. && 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