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 f.c f.o' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8echo dude > f.c
 9
10($EXEC scc make -f- <<'EOF'
11f.o:
12	@echo hello > $@
13
14all: f.o
15EOF
16cat f.o) > $tmp1 2>&1
17
18diff $tmp1 - <<EOF
19hello
20EOF