File: check-translate

package info (click to toggle)
coq-doc 8.4pl4-2
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 21,852 kB
  • ctags: 24,335
  • sloc: ml: 140,953; ansic: 1,982; lisp: 1,406; sh: 1,347; makefile: 572; sed: 2
file content (23 lines) | stat: -rwxr-xr-x 975 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo -------------- Producing translated files ---------------------
rm */*/*.v8 >& /dev/null
make COQ_XML=-translate theories || { echo ---- Failed to translate; exit 1; }
if [ -e translated ]; then rm -r translated; fi
if [ -e successful-translation ]; then rm -r successful-translation; fi
if [ -e failed-translation ]; then rm -r failed-translation; fi
mv theories translated
mkdir theories
echo -------------------- Upgrading files --------------------------
cd translated
for i in */*.v
do
  mkdir ../theories/`dirname $i` >& /dev/null
  mv "$i"8 ../theories/$i
done
cd ..
echo --------------- Recompiling translated files ------------------
make theories || { echo ---- Failed to recompile; mv theories failed-translation; mv translated theories; exit 1; }
echo ----------------- Recompilation successful --------------------
if [ -e successful-translation ]; then rm -r successful-translation; fi
mv theories successful-translation; mv translated theories