summaryrefslogtreecommitdiff
path: root/contrib/extraction/test/extract.haskell
blob: d11bc706e6bade6cd368e9ba0a0da9f2607a0d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
rm -f /tmp/extr$$.v 
vfile=`./hs2v $1`
d=`dirname $vfile`
n=`basename $vfile .v`
if [ -e custom/$n ]; then cat custom/$n > /tmp/extr$$.v; fi  
echo "Cd \"$d\". Extraction Language Haskell. Extraction Library $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