File: compile.sh

package info (click to toggle)
gap-hap 1.73%2Bds-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 58,508 kB
  • sloc: xml: 16,467; sh: 197; javascript: 155; makefile: 121; ansic: 47; perl: 24
file content (38 lines) | stat: -rwxr-xr-x 845 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#You must set PKGDIR equal to the directory in which GAP packages are stored
# on your computer.

PKGDIR=$(dirname $(pwd));

#You must set GACDIR equal to the directory in which the GAP compiler gac is
#stored on your computer.

GACDIR=$(dirname $(which gac))



#####################################################################
#DON'T CHANGE ANYTHING BELOW
#####################################################################
read version < version;

LIB=$PKGDIR/hap-$version/lib;

rm $PKGDIR/hap-$version/boolean;
echo "COMPILED:=true;" > $PKGDIR/hap-$version/boolean;

#$GACDIR/gac -d $LIB/CompiledGAP/*.c;
#mkdir  $LIB/CompiledGAP/Compiled;
#mv *.so $LIB/CompiledGAP/Compiled/;

for dir in $(ls -d $LIB/*/); do
mkdir $dir/Compiled;
for file in $(ls $dir*.gi); do
$GACDIR/gac -d $file;
mv *.so $dir/Compiled;
rm *.la.la;
done;
done;