blob: ea85582dff82db3960574d5c41e7714fd2615f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
rm -f /tmp/extr$$.v
vfile=`./ml2v $1`
d=`dirname $vfile`
n=`basename $vfile .v`
cat custom/all > /tmp/extr$$.v
if [ -e custom/$n ]; then cat custom/$n >> /tmp/extr$$.v; fi
echo "Cd \"$d\". Extraction Module $n. " >> /tmp/extr$$.v
../../../bin/coqtop.opt -silent -batch -require $n -load-vernac-source /tmp/extr$$.v
out=$?
rm -f /tmp/extr$$.v
exit $out
|