summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/triptrap-sh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-30 01:42:07 +0000
committerKarl Berry <karl@freefriends.org>2021-01-30 01:42:07 +0000
commit0bf3e49d4d147727e1daf1007362a871972b214f (patch)
tree63a54dcf8830af3f1f4672589b1ebce917693e57 /Build/source/texk/web2c/triptrap-sh
parent62203043f467d3a24b34f2df151b65e6ea35144b (diff)
tuneup2021 from DEK, with adaptations for TL
git-svn-id: svn://tug.org/texlive/trunk@57558 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/triptrap-sh')
-rwxr-xr-xBuild/source/texk/web2c/triptrap-sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/triptrap-sh b/Build/source/texk/web2c/triptrap-sh
index 6c2fb779759..9a36ccc4b96 100755
--- a/Build/source/texk/web2c/triptrap-sh
+++ b/Build/source/texk/web2c/triptrap-sh
@@ -1,7 +1,9 @@
#! /bin/sh
+# $Id$
# shell script to run TRIP and TRAP tests and create diffs.
#
-# Copyright (C) 2010-2015 Peter Breitenlohner <tex-live@tug.org>
+# Copyright 2015-2021 Karl Berry <tex-live@tug.org>
+# Copyright 2010-2015 Peter Breitenlohner <tex-live@tug.org>
#
# This file is free software; the copyright holder
# gives unlimited permission to copy and/or distribute it,
@@ -37,19 +39,23 @@ do
$MAKE TESTS=$tst.test check-am >$tmp 2>&1 \
&& grep "PASS: $tst.test" $tmp >/dev/null 2>&1 \
|| { echo "FAIL: $tst.test"; is_OK=false; }
+
sed -e "s%$abs_srcdir/%SRCDIR/%" \
-e "s%\.\./%./%" \
$tst.log >$file
+
+ rm -f $tst.out # previous output file, if any.
+
$is_OK && {
echo "PASS: $tst.test" >>$file
echo "PASS: $tst.test"
+ rm -f $tmp
} || {
echo "FAIL: $tst.test" >>$file
+ # preserve our output file in case of failure
+ mv $tmp $tst.out
rc=1
}
- rm -f $tmp
done
echo "$me: All done"
exit $rc
-
-