File: MAKE_PROGS

package info (click to toggle)
gprolog 1.5.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,912 kB
  • sloc: ansic: 57,412; perl: 18,500; sh: 3,677; makefile: 1,123; asm: 97
file content (17 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
BENCH_PL=`cat ../PROGS`

p=`(cd ..;pwd)`
p1=`pwd`;

for i in ${*:-$BENCH_PL}
do
        echo $i
        f=$i.pl
        sed -e 's/^:- include(common)\.//' $p/$i.pl >$f
        sed -e 's/^:- include(hook)\.//' $p/common.pl >>$f
        cat HOOK.pl >>$f
	wamcc $f
	w_gcc -s -o $i $i.c -lwamcc
	rm -f $i.c $i.h $i.usr
done