scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3trap 'rm -f f.? $tmp1 f.?' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8touch -d '1970-01-01 00:00:01' f.c
 9touch -d '1970-01-01 00:00:02' f.o
10touch -d '1970-01-01 00:00:03' f.h
11$EXEC scc make -f - <<'EOF' > $tmp1 2>&1
12f.o: f.h
13
14all: f.o
15EOF
16
17diff $tmp1 - <<EOF
18c99 -O1 -c f.c
19EOF