From 3869a436a3e7179188d9e9f1424bf15777d9b455 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 23 May 2015 16:38:13 +0000 Subject: allow for making just devsource; typos git-svn-id: svn://tug.org/texlive/trunk@37483 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-update-images | 41 ++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) (limited to 'Master/tlpkg/bin/tl-update-images') diff --git a/Master/tlpkg/bin/tl-update-images b/Master/tlpkg/bin/tl-update-images index 072ca8c976e..6e4521cd415 100755 --- a/Master/tlpkg/bin/tl-update-images +++ b/Master/tlpkg/bin/tl-update-images @@ -33,6 +33,8 @@ makeinst=true maketar=true tar_all=true tar_bin_only=false +tar_devsource_only=false +tar_extra_only=false tar_source_only=false quiet= # for passing to mkisofs @@ -46,8 +48,10 @@ while test $# -gt 0; do --notar) maketar=false;; --quiet) quiet=-quiet;; --target=*) target=`echo $1 | sed 's/.*=//'`;; - --tar-bin-only) tar_all=false; makeinst=false; tar_bin_only=true;; - --tar-source-only) tar_all=false; makeinst=false; tar_source_only=true;; + --tar-bin-only) tar_all=false; makeinst=false; tar_bin_only=true;; + --tar-devsource-only) tar_all=false; makeinst=false;tar_devsource_only=true;; + --tar-extra-only) tar_all=false; makeinst=false; tar_extra_only=true;; + --tar-source-only) tar_all=false; makeinst=false; tar_source_only=true;; --version) echo "$0 for $NAME-$V ($D)"; exit 0;; # who cares ... *) echo "$0: unknown option $1; try --help if you need it." >&2; exit 1;; esac @@ -191,37 +195,48 @@ MAKETAR () # remove old tarballs and checksums. rm -f $target/$NAME-*.tar.* - # make tar files based on the tree we are running out of. - cd $master || exit 1 - do_tar $NAME-$D-extra \ + # make tar files using the contents of the tree we are running out of. + if $tar_extra_only || $tar_all; then + cd $master || exit 1 + do_tar $NAME-$D-extra \ LICENSE* README* autorun.inf *.html install* re* tl-* \ tlpkg/TeXLive tlpkg/translations tlpkg/tlpostcode - - cd $master || exit 1 - do_tar $NAME-$D-texmf texmf* - + $tar_extra_only && return # for debugging + fi + + # compiled binaries. if $tar_bin_only || $tar_all; then cd $master/bin || exit 1 do_tar $NAME-$D-bin * $tar_bin_only && return fi + # compilable sources. if $tar_source_only || $tar_all; then cd $master/../Build/source || exit 1 do_tar $NAME-$D-source * $tar_source_only && return fi - # one more unusual case: the development sources, which we record in - # the 00texlive.image (fake) package; see its .tlpsrc. + # development sources, which we record in the + # 00texlive.image (fake) package; see its .tlpsrc. + if $tar_devsource_only || $tar_all; then + cd $master || exit 1 + do_tar $NAME-$D-devsource `$mydir/tlpfiles 00texlive.image` + $tar_devsource_only && return + fi + + # the big tree; must have $tar_all if we get here. cd $master || exit 1 - do_tar $NAME-$D-devsource `$mydir/tlpfiles 00texlive.image` + do_tar $NAME-$D-texmf texmf* } # main program. -# Add our exact version to the release file. +# Add our exact version to the release file. Ensure a line of its own, +# although a blank line should already be there. +rm -f /tmp/tluirt.txt cp $master/release-texlive.txt /tmp/tluirt.txt printf "\ntexlive-$D\n" >>$master/release-texlive.txt -- cgit v1.2.3