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 $tmp2 f.?' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7tmp2=tmp2.$$
 8
 9cat >$tmp1 <<'EOF'
10f.o: f.h
11
12all: f.o
13EOF
14
15(touch f.c f.h
16$EXEC scc make -f $tmp1
17touch f.c
18scc make -f $tmp1) > $tmp2
19
20diff $tmp2 - <<EOF
21c99 -O1 -c f.c
22EOF