scc.sh (343B)
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 $1 in 16 cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|objdump|size|strip) 17 tool=$1 18 shift 19 exec $SCCPREFIX/bin/scc-$tool $@ 20 ;; 21 *) 22 exec $SCCPREFIX/bin/scc-cc $@ 23 ;; 24 esac