diff options
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-linked-scripts | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Master/tlpkg/bin/tl-update-linked-scripts b/Master/tlpkg/bin/tl-update-linked-scripts index 5ef63786983..dc86c23a89a 100755 --- a/Master/tlpkg/bin/tl-update-linked-scripts +++ b/Master/tlpkg/bin/tl-update-linked-scripts @@ -9,24 +9,27 @@ mydir=`cd \`dirname $0\` && pwd` Master=`cd $mydir/../.. && pwd` Dest=`cd $Master/../Build/source/texk/texlive/linked_scripts && pwd` -test -r $Dest/scripts.lst || { - echo "$0: \`$Dest/scripts.lst' missing'" - exit 1 -} - -. $Dest/scripts.lst - compare_and_copy () { Src=$Master/$1/scripts shift - for file in $@; do + for file in "$@"; do #echo "comparing $Src/$file to $Dest..." + echo "$file" | grep '/context.sh$' >/dev/null && continue # context in flux + cmp -s $Src/$file $Dest/$file && continue + echo "updating $Src/$file -> $Dest/$file" diff -u0 $Src/$file $Dest/$file cp $Src/$file $Dest/$file || exit 1 done } +test -r $Dest/scripts.lst || { + echo "$0: \`$Dest/scripts.lst' missing'" + exit 1 +} + +. $Dest/scripts.lst + compare_and_copy texmf $texmf_scripts compare_and_copy texmf-dist $texmf_dist_scripts |