0055-rule.sh - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
0055-rule.sh (252B)
---
1 #!/bin/sh
2
3 trap 'rm -f $tmp1' EXIT
4 trap 'exit $?' HUP INT TERM
5
6 tmp1=tmp1.$$
7
8 (set -e
9 $EXEC scc make -if- <<'EOF'
10 .POSIX:
11
12 all:
13 @echo Hello World!;\
14 false;\
15 echo bye
16 EOF
17 echo fail) > $tmp1 2> /dev/null
18
19 diff $tmp1 - <<EOF
20 Hello World!
21 bye
22 fail
23 EOF