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' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8$EXEC scc make -f - <<'EOF' > $tmp1 2>&1
 9# Generic rules
10.SUFFIXES:
11.SUFFIXES: .c .map .dump .elf .bin\
12	   .i .a .o .s .S .ko .ld .tmpl\
13	   .pdf .ps .eps .puml\
14	   .ms .1 .2 .3 .4 .5 .6 .7\
15
16all:
17	@echo Hello World!
18EOF
19
20diff $tmp1 - <<EOF
21Hello World!
22EOF