]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/EXPORT/exportcoq/export_theory_theory.sh
Many files added. Symbolic links missing. examples and contrib missing due
[helm.git] / helm / EXPORT / exportcoq / export_theory_theory.sh
diff --git a/helm/EXPORT/exportcoq/export_theory_theory.sh b/helm/EXPORT/exportcoq/export_theory_theory.sh
new file mode 100755 (executable)
index 0000000..d2e5442
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "Exporting theory $1";
+
+for i in ~/V7/theories/$1/*.v
+ do
+  basename=$(basename $i | sed s/\\.v//)
+  cat $i | ../mktheory.pl "Coq/$1/$basename" 0 > \
+   examples/Coq/$1/$basename.theory.xml
+#  cat $i | ../mktheory.pl "Coq/$1/$basename" 1 > \
+#   examples/Coq/$1/"$basename"_with_types.theory.xml
+ done