scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3if test -z $SCCPREFIX
 4then
 5	SCCPREFIX=`dirname $0`/..
 6	export SCCPREFIX
 7fi
 8
 9if test -z $SCCLIBPREFIX
10then
11	SCCLIBPREFIX=`dirname $0`/..
12	export SCCLIBPREFIX
13fi
14
15export PATH=$SCCPREFIX/bin:$PATH
16
17case $1  in
18cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|objdump|size|strip)
19	tool=$1
20	shift
21	exec $SCCPREFIX/bin/scc-$tool "$@"
22	;;
23*)
24	exec $SCCPREFIX/bin/scc-cc "$@"
25	;;
26esac