0001-z80.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
       ---
       0001-z80.sh (255B)
       ---
            1 #!/bin/sh
            2 
            3 set -e
            4 trap 'rm -f $tmp1 $tmp2 $tmp3' EXIT HUP INT QUIT TERM
            5 
            6 tmp1=tmpfile1
            7 tmp2=tmpfile2
            8 tmp3=tmpfile3
            9 
           10 cp z80.out $tmp1
           11 scc strip $tmp1 > $tmp2
           12 scc nm $tmp1 >> $tmp2 2>&1 || true
           13 
           14 cat > $tmp3 <<EOF
           15 nm: $tmp1: no symbols
           16 EOF
           17 
           18 diff $tmp2 $tmp3