diff options
author | Karl Berry <karl@freefriends.org> | 2006-02-05 23:15:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-02-05 23:15:41 +0000 |
commit | 8690f01f14ec22deabb9cf6f41e98a68d5cf40b3 (patch) | |
tree | abca84b000804313c1edbc3d420229bfbe2e4240 /Master/Tools/update-lsr | |
parent | c04b856f0071b13d38911871a4a4c8bb6dba65e4 (diff) |
vastly simplify for svn.
git-svn-id: svn://tug.org/texlive/trunk@1495 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/Tools/update-lsr')
-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' |