diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-01 12:37:36 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-01 12:37:36 +0000 |
commit | d18371174552ed29069a34d81d60530df431ac0f (patch) | |
tree | 91a8d71e3b428f02e2fdbf76977f3a750204fc22 /pg | |
parent | 3a2533890c9c275c38d620f4bcfa4aa76eab19a6 (diff) |
Use "-as" to put CompCert modules in a compcert.xxx namespace.
Simplified the scripts "coq" and "pg".
Updated deps.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2228 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'pg')
-rwxr-xr-x | pg | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -4,9 +4,7 @@ # Recompile the modified file after coqide editing PWD=`pwd` -ARCH=$PWD/`sed -n -e 's/^ARCH=//p' Makefile.config` -VARIANT=$ARCH/`sed -n -e 's/^VARIANT=//p' Makefile.config` - +INCLUDES=`make print-includes` make -q ${1}o || { make -n ${1}o | grep -v "\\b${1}\\b" | \ @@ -14,9 +12,18 @@ make -q ${1}o || { sh -c "$cmd" || exit 2 done) } + COQPROGNAME="coqtop" -COQPROGARGS="\"-I\" \"$PWD/lib\" \"-I\" \"$PWD/common\" \"-I\" \"$VARIANT\" \"-I\" \"$ARCH\" \"-I\" \"$PWD/backend\" \"-I\" \"$PWD/cfrontend\" \"-I\" \"$PWD/flocq\" \"-I\" \"$PWD/flocq/Appli\" \"-I\" \"$PWD/flocq/Calc\" \"-I\" \"$PWD/flocq/Core\" \"-I\" \"$PWD/flocq/Prop\"" +COQPROGARGS="" +for arg in $INCLUDES; do + case "$arg" in + -I|-R|-as|compcert*) + COQPROGARGS="$COQPROGARGS \"$arg\"";; + *) + COQPROGARGS="$COQPROGARGS \"$PWD/$arg\"";; + esac +done emacs --eval "(setq coq-prog-name \"$COQPROGNAME\")" \ --eval "(setq coq-prog-args '($COQPROGARGS))" $1 \ |