scc

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

mkconf (294B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 rm -f config.h
      6 trap "rm -f $$.h" 0 2 3
      7 
      8 echo $@ |
      9 (IFS='- 	' read arch abi sys format r
     10 echo \#define PREFIX \"${PREFIX-$HOME}\"
     11 echo \#define ARCH \"$arch\"
     12 echo \#define SYS  \"$sys\"
     13 echo \#define ABI  \"$abi\"
     14 echo \#define FORMAT \"$format\") > $$.h && mv $$.h config.h