summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-auto
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2012-05-21 04:22:56 +0000
committerNorbert Preining <preining@logic.at>2012-05-21 04:22:56 +0000
commit427fc445850661fff6a8f8471ce765e9a24f9ad5 (patch)
tree1a693e950eb57445db557c4536bafdd599a9ec40 /Master/tlpkg/bin/tl-update-auto
parent949c8ab9cfbc9cb341d543d94bf049eb4466d6c4 (diff)
split out the reading of TeX Catalogue from the update of tlpdb
(to be resistent against TC errors): - new script: tl-dump-texcatalogue that reads from ARGV[0] and dumps to stdout - tl-update-tlpdb: . read catalogue data from Master/texmf/scripts/texlive/var/texcatalogue.data . if this file is not found, reuse the already present catalogue data (instead of dropping all data) - tl-update-auto: update Master/texmf/scripts/texlive/var/texcatalogue.data git-svn-id: svn://tug.org/texlive/trunk@26533 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-auto')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-auto19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto
index 6e3f3f1ded4..a664da9dcf1 100755
--- a/Master/tlpkg/bin/tl-update-auto
+++ b/Master/tlpkg/bin/tl-update-auto
@@ -249,6 +249,25 @@ fi
fi # !config_scripts_only
+# texcatalogue.data
+#
+if $config_scripts_only; then :; else
+$mydir/tl-dump-texcatalogue /home/httpd/html/catalogue >$temp.tcdata.new
+#
+tcdatafile=texmf/scripts/texlive/var/texcatalogue.data
+#
+if test ! -s $temp.tcdata.new; then
+ $verbose " $temp.tcdata.new empty, skipping."
+elif $diff $tcdatafile $temp.tcdata.new >$temp.tcdata.diff; then
+ $verbose " $tcdatafile ok."
+else
+ $chicken $cp $temp.tcdata.new $tcdatafile
+ update_list="$update_list $tcdatafile"
+fi
+fi # !config_scripts_only
+
+
+
# ctan mirror list from ctan.
if $config_scripts_only; then :; else
if test `date +%w` = 0; then # only update on Sundays