scc

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

update.sh (164B)


      1 #!/bin/sh
      2 
      3 update()
      4 {
      5 	for i
      6 	do
      7 		(echo '/^PATTERN/+;/^\./-c'
      8 		 scc $CFLAGS -W -c $i 2>&1
      9 		 printf ".\nw\n"
     10 		 echo w) |
     11 		ed -s $i
     12 	done
     13 }
     14 
     15 update $@
     16 update $@