diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-29 14:32:45 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-12-29 14:32:45 +0000 |
commit | 9da2af345bbc3848d181319a77b830c77034ae1e (patch) | |
tree | 74832eb1c57486b7ce18e0d987150cbdf42876a9 /Build/source/texk/web2c/ctangleboot-sh.in | |
parent | a7c9a7ff1a6d0925eafe21175304c494e266b319 (diff) |
build system: Enable "silent rules" (see Automake manual)
git-svn-id: svn://tug.org/texlive/trunk@28654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ctangleboot-sh.in')
-rw-r--r-- | Build/source/texk/web2c/ctangleboot-sh.in | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/Build/source/texk/web2c/ctangleboot-sh.in b/Build/source/texk/web2c/ctangleboot-sh.in index 450d2aa94d0..db5da006b6c 100644 --- a/Build/source/texk/web2c/ctangleboot-sh.in +++ b/Build/source/texk/web2c/ctangleboot-sh.in @@ -3,7 +3,7 @@ # update c{tangle,web}boot.[ch]in from c{tangle,web}.[ch]. # For details see tangle-sh. # -# Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org> +# Copyright (C) 2009-2012 Peter Breitenlohner <tex-live@tug.org> # # This file is free software; the copyright holder # gives unlimited permission to copy and/or distribute it, @@ -20,15 +20,26 @@ esac TEXMFCNF=@srcdir@/../kpathsea; export TEXMFCNF CWEBINPUTS=@srcdir@/cwebdir; export CWEBINPUTS +do_ctangleboot () { + echo timestamp >$stamp.tmp + if $AM_V_P; then + echo "@CTANGLEBOOT@ $@" + @CTANGLEBOOT@ "$@" || exit 1 + else + echo " CTANGLE " $base + @CTANGLEBOOT@ "$@" >$base.out 2>&1; rc=$? + test $rc -eq 0 || { cat $base.out; exit $rc; } + rm -f $base.out + fi + mv -f $stamp.tmp $stamp +} + stamp=$base-ctangle case $target in $stamp) # Normal build. rm -f $stamp.tmp - echo timestamp >$stamp.tmp - echo "@CTANGLEBOOT@ $@" - @CTANGLEBOOT@ "$@" || exit 1 - mv -f $stamp.tmp $stamp + do_ctangleboot "$@" ;; *) # Recover from removal of $target @@ -37,10 +48,7 @@ case $target in if mkdir $stamp.lock 2>/dev/null; then # Code executed by the first process. rm -f $stamp $stamp.tmp - echo timestamp >$stamp.tmp - echo "@CTANGLEBOOT@ $@" - @CTANGLEBOOT@ "$@" || exit 1 - mv -f $stamp.tmp $stamp + do_ctangleboot "$@" rmdir $stamp.lock else # Code executed by the follower processes. @@ -61,7 +69,11 @@ for ext in $exts; do if cmp -s $stamp.tmp $dst; then rm -f $stamp.tmp else - echo "Updating $src => $dst" + if $AM_V_P; then + echo "Updating $src => $dst" + else + echo " UPD " ${file}boot.${ext}in + fi mv -f $stamp.tmp $dst || exit 1 fi done |