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 $tmp1 file.o file.c' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8touch file.c
 9
10scc make -tf test.mk file.o > $tmp1 2>&1
11
12diff $tmp1 - <<EOF && test -f file.c -a -f file.o
13touch file.c
14touch file.o
15EOF