0045-comment.sh - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
0045-comment.sh (285B)
---
1 #!/bin/sh
2
3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM QUIT
4
5 tmp1=tmp1.$$
6 tmp2=tmp2.$$
7
8 cat > $tmp2 <<EOF
9 make: error: don't know how to make target1
10 EOF
11
12 scc make -f - target1 <<EOF > $tmp1 2>&1
13 #esto es un comentario \
14 target1: ; echo hello
15 target2: ; echo bye
16 EOF
17
18 diff $tmp1 $tmp2