diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-13 18:20:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-13 18:20:37 +0000 |
commit | 325d9b4f35ba6602fc65ef48c0c5903ce040d662 (patch) | |
tree | caf83da199b10a27ad1547477fba42bd7d862286 | |
parent | 0cbce46e95fac68cb0d058729db89dd195d24638 (diff) |
tlnet: test everything before moving; images: build tar files
git-svn-id: svn://tug.org/texlive/trunk@15262 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/tlpkg/bin/tl-update-images | 8 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tl-update-tlnet | 26 |
2 files changed, 23 insertions, 11 deletions
diff --git a/Master/tlpkg/bin/tl-update-images b/Master/tlpkg/bin/tl-update-images index 3a941a6d290..3d0e226b0e9 100755 --- a/Master/tlpkg/bin/tl-update-images +++ b/Master/tlpkg/bin/tl-update-images @@ -138,11 +138,11 @@ MAKETAR () cd $master do_tar $NAME-$D-extra LICENSE* README* *.html install* re* \ - tl-portable* tlpkg/TeXLive tlpkg/translations \ - do_tar $NAME-$D-texmf texmf* + tl-portable* tlpkg/TeXLive tlpkg/translations || return + do_tar $NAME-$D-texmf texmf* || return cd $master/../Build/source - do_tar $NAME-$D-source * + do_tar $NAME-$D-source * || return cd $master/bin do_tar $NAME-$D-bin * @@ -154,7 +154,7 @@ MAKETAR () # Add our exact version to the release file. printf "\ntexlive-$D\n" >>$master/release-texlive.txt -#$maketar && MAKETAR +$maketar && MAKETAR $makelive && MAKELIVE # Undo the version. diff --git a/Master/tlpkg/bin/tl-update-tlnet b/Master/tlpkg/bin/tl-update-tlnet index ae7858591b4..b538ac90a2a 100755 --- a/Master/tlpkg/bin/tl-update-tlnet +++ b/Master/tlpkg/bin/tl-update-tlnet @@ -163,14 +163,26 @@ if test -n "$unexpected_output"; then echo "$0: Test installation failed." >&2 echo "$0: Here is the unexpected output:" >&2 echo "$unexpected_output" >&2 +fi -else - # install worked, how about tlmgr? - tlmgr=$tltryinst/$yyyy/bin/*/tlmgr - if $tlmgr update --list; then :; else - failure=true - echo "$0: tlmgr update --list failed ($tlmgr)." >&2 - fi +# more consistency checks. +if test $failure = false; then + for cmd in \ + "$tltryinst/$yyyy/bin/*/tlmgr update --list" \ + "$Master/tlpkg/bin/check-tlnet-consistency --location=$tlnet_dir" \ + "$Master/tlpkg/bin/tl-compare-tlpdbs $tlnet_dir/tlpkg/texlive.tlpdb" \ + ; do + basecmd=`basename $cmd` + echo "$0: Running $basecmd ($cmd)" + outfile=/tmp/tlcheck.`echo "$cmd" | awk '{print $1}'` + if $cmd >$outfile 2>&1; then :; else + echo "$0: $basecmd failed ($cmd):" >&2 + sed 8q $outfile >&2 + echo "... see $outfile for full output ..." >&2 + echo >&2 + failure=true + fi + done fi if $failure; then |