scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit bfb5950b41f6430471d841f21f23a745029e45b5
parent 10f4504a3888a07d7650bf4aaab209df283b46ad
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 11 Feb 2024 08:24:56 +0100

build: Minor fixes to scripts

Diffstat:
Msrc/cmd/cc/posix/Makefile | 1-
Mtests/as/execute/test.sh | 6+++---
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/cmd/cc/posix/Makefile b/src/cmd/cc/posix/Makefile @@ -23,7 +23,6 @@ $(BINDIR)/scc: scc.sh chmod +x $@ config.h: - set -e;\ rm -f $@;\ trap "rm -f $$$$.h" EXIT INT QUIT HUP TERM;\ (echo '#define PREFIX "$(PREFIX)"';\ diff --git a/tests/as/execute/test.sh b/tests/as/execute/test.sh @@ -5,11 +5,11 @@ cpu=${1?} exec >>test.log exec 2>&1 -tmp1=`mktemp` -tmp2=`mktemp` +tmp1=tmp1.$$ +tmp2=tmp2.$$ file=$cpu.s -trap "rm -f a.out $tmp1 $tmp2; exit" 0 2 3 +trap "rm -f a.out $tmp1 $tmp2" 0 2 3 as-$cpu $file