lib/Tools/codegen
changeset 28660 54091ba1448f
parent 28650 a7ba12e0d3b7
child 29143 72c960b2b83e
--- a/lib/Tools/codegen	Tue Oct 21 23:54:42 2008 +0200
+++ b/lib/Tools/codegen	Wed Oct 22 14:15:42 2008 +0200
@@ -34,7 +34,8 @@
 
 ## main
 
-CMD=$(echo $CMD | sed -e 's/\\/\\\\"/g; s/"/\\\"/g')
-FULL_CMD="Code_Target.shell_command \"$THY\" \"$CMD\";"
+THY=$(echo $THY | sed -e 's/\\/\\\\"/g; s/"/\\\"/g')
+ISAR="theory Codegen imports \"$THY\" begin export_code $CMD end"
 
-"$ISABELLE_PROCESS" -q -e "$FULL_CMD" "$IMAGE" || exit 1
+echo "$ISAR" | "$ISABELLE_PROCESS" -I "$IMAGE" || exit 1
+