diff options
-rwxr-xr-x | Master/Tools/update-lsr | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/Master/Tools/update-lsr b/Master/Tools/update-lsr index 4b596de2b6c..7756de3556d 100755 --- a/Master/Tools/update-lsr +++ b/Master/Tools/update-lsr @@ -2,7 +2,7 @@ # $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's cron. +# Update ls-R files. Called from tlrebuild and also karl@tug's cron. mydir=`dirname $0` tools=`cd $mydir && pwd` @@ -11,32 +11,11 @@ umask 0 master=`cd $mydir/.. && pwd` -# save current. -cd $master || exit 1 -for f in texmf*/ls-R; do - rm -f $f.save - cp $f $f.save -done -# # generate new. -#p4 edit texmf*/ls-R ./bin/i386-linux/mktexlsr -# -for f in texmf*/ls-R; do - test $f = texmf-var/ls-R && continue # not checked in - if cmp -s $f.save $f; then - # no change, back to current. - : p4 revert $f - else - : # update needed, will happen next. - fi - # - rm -f $f.save -done -# if we have any files, submit to perforce (frightening but necessary). -#if p4 change -o | grep '^Files:' >/dev/null; then -# p4 change -o \ -# | sed "s!<enter description here>!regenerated by $0!" \ -# | p4 submit -i -#fi +# 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' |