File: extract

package info (click to toggle)
coq 8.0pl2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,228 kB
  • ctags: 17,685
  • sloc: ml: 97,070; makefile: 1,255; sh: 738; lisp: 456; awk: 15
file content (12 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
rm -f /tmp/extr$$.v 
vfile=`./ml2v $1`
d=`dirname $vfile`
n=`basename $vfile .v`
if [ -e custom/$n ]; then cat custom/$n > /tmp/extr$$.v; fi  
echo "Cd \"$d\". 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