diff options
| author | herbelin | 2006-04-26 22:25:21 +0000 |
|---|---|---|
| committer | herbelin | 2006-04-26 22:25:21 +0000 |
| commit | 8ec716f5acefba0447ecbfaae5fc1943d99a6dac (patch) | |
| tree | 56f39a3d248ac346198bb72c97e50d5185d95962 | |
| parent | 519804c3de605b6da3c5973cf2061a01d1102270 (diff) | |
Outil de test de la réversibilité du réafficheur v8->v8
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8740 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rwxr-xr-x | tools/check-translate | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/check-translate b/tools/check-translate new file mode 100755 index 0000000000..e310adb175 --- /dev/null +++ b/tools/check-translate @@ -0,0 +1,23 @@ +#!/bin/sh + +echo -------------- Producing translated files --------------------- +rm */*/*.v8 +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 + cp "$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 |
