summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/silent-sh.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
committerKarl Berry <karl@freefriends.org>2021-02-25 19:22:25 +0000
commitad547a6b5986815fda458221149728d9d9ab1d87 (patch)
tree16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/web2c/silent-sh.in
parent947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff)
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/silent-sh.in')
-rw-r--r--Build/source/texk/web2c/silent-sh.in25
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