template.sh (380B)
1 #!/bin/sh 2 # This file is in the public domain. 3 # 4 # Instantiates pg_template for a particular function. 5 6 for n in $* 7 do 8 NCAPS=`echo $n | tr a-z A-Z` 9 if test ! -e $n.c 10 then 11 cat template.c | sed -e s/template/$n/g -e s/TEMPLATE/$NCAPS/g > $n.c 12 cat template.h | sed -e s/template/$n/g -e s/TEMPLATE/$NCAPS/g > ../include/auditor-database/$n.h 13 fi 14 done 15