summaryrefslogtreecommitdiff
path: root/Master/Tools/update-lsr
blob: 56f8649a830f187b17f4a9e72bfd5184039c11cd (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: //depot/Master/Tools/update-lsr#1 $ $Date: 2005/06/28 $ $Author: karl $
# 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