0030-tflag.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
---
0030-tflag.sh (254B)
---
1 #!/bin/sh
2
3 trap 'rm -f $tmp1 $tmp2 file.o file.c' EXIT INT TERM QUIT HUP
4
5 tmp1=tmp1.$$
6 tmp2=tmp2.$$
7
8 touch file.c
9
10 cat > $tmp2 <<EOF
11 touch file.c
12 touch file.o
13 EOF
14
15 scc make -tf test.mk file.o > $tmp1 2>&1
16
17 diff $tmp1 $tmp2 && test -f file.c -a -f file.o