summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-linked-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tl-update-linked-scripts')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-linked-scripts31
1 files changed, 25 insertions, 6 deletions
diff --git a/Master/tlpkg/bin/tl-update-linked-scripts b/Master/tlpkg/bin/tl-update-linked-scripts
index 6168072c237..75504eafdb6 100755
--- a/Master/tlpkg/bin/tl-update-linked-scripts
+++ b/Master/tlpkg/bin/tl-update-linked-scripts
@@ -2,16 +2,12 @@
# $Id$
# Public domain. Originally written 2011, Peter Breitenlohner.
#
-# This script updates the linked scripts under Build
-# (but doesn't commit anything).
+# This script updates the linked scripts (but doesn't commit anything).
mydir=`cd \`dirname $0\` && pwd`
Master=`cd $mydir/../.. && pwd`
-Dest=`cd $Master/../Build/source/texk/texlive/linked_scripts && pwd`
compare_and_copy () {
- Src=$Master/$1/scripts
- shift
for file in "$@"; do
#echo "comparing $Src/$file to $Dest..."
echo "$file" | grep '/context.sh$' >/dev/null && continue # context in flux
@@ -24,11 +20,34 @@ compare_and_copy () {
done
}
+# Master/texmf-dist/scripts => Build/source/texk/texlive/linked_scripts
+
+Dest=`cd $Master/../Build/source/texk/texlive/linked_scripts && pwd`
+Src=$Master/texmf-dist/scripts
+
test -r $Dest/scripts.lst || {
echo "$0: \`$Dest/scripts.lst' missing'"
exit 1
}
+# echo "$Src => $Dest"
+
. $Dest/scripts.lst
-compare_and_copy texmf-dist $texmf_scripts
+compare_and_copy $texmf_scripts
+
+# Build/source/texk/texlive/tl_scripts => Master/texmf-dist/scripts/texlive
+
+Src=`cd $Dest/../tl_scripts && pwd`
+Dest=$Master/texmf-dist/scripts/texlive
+
+test -r $Src/scripts.lst || {
+ echo "$0: \`$Src/scripts.lst' missing'"
+ exit 1
+}
+
+# echo "$Src => $Dest"
+
+. $Src/scripts.lst
+
+compare_and_copy $tl_scripts