scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

scc.sh (273B)


      1 #!/bin/sh
      2 
      3 if test -z $SCCPREFIX
      4 then
      5 	SCCPREFIX=`dirname $0`/..
      6 	export SCCPREFIX
      7 fi
      8 
      9 if test -z $SCCLIBPREFIX
     10 then
     11 	SCCLIBPREFIX=`dirname $0`/..
     12 	export SCCLIBPREFIX
     13 fi
     14 
     15 case $0 in
     16 *cpp)
     17 	exec $SCCPREFIX/bin/scc-cc -E $@
     18 	;;
     19 *scc)
     20 	exec $SCCPREFIX/bin/scc-cc $@
     21 	;;
     22 esac