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/silent-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/silent-sh.in')
-rw-r--r-- | Build/source/texk/web2c/silent-sh.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/silent-sh.in b/Build/source/texk/web2c/silent-sh.in new file mode 100644 index 00000000000..94f7814e57f --- /dev/null +++ b/Build/source/texk/web2c/silent-sh.in @@ -0,0 +1,25 @@ +#! @SHELL@ +# silent-sh: shell script to invoke tie etc in silent rules. +# +# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org> +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# +# Used as, e.g., +# tex-final.ch: tie$(EXEEXT) $(tex_ch_srcs) +# $(tie) -c $@ $(tex_ch_srcs) +# with +# tie = $(tie_silent)WEBINPUTS=.:$(srcdir) $(buildenv) $(TIE) +# and +# tie_silent = @echo " TIE " $@; $(SHELL) ./silent-sh $@ # +# or +# tie_silent = + +target=$1; shift +eval "$@" >$target.out 2>&1; rc=$? +test $rc -eq 0 || cat $target.out +rm -f $target.out + +exit $rc |