diff options
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 |