summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2012-12-29 10:57:43 +0100
committerGravatar Stephane Glondu <steph@glondu.net>2012-12-29 10:57:43 +0100
commitbf12eb93f3f6a6a824a10878878fadd59745aae0 (patch)
tree279f64f4b7e4804415ab5731cc7aaa8a4fcfe074 /build
parente0d682ec25282a348d35c5b169abafec48555690 (diff)
Imported Upstream version 8.4pl1dfsgupstream/8.4pl1dfsg
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/build b/build
index c4b90d86..4fca642e 100755
--- a/build
+++ b/build
@@ -12,12 +12,14 @@ check_config() {
[ -L $MYCFG ] || ln -sf $CFG $MYCFG
}
-ocb() { $OCAMLBUILD $FLAGS $*; }
+# NB: we exec ocamlbuild and run ocb last for a correct exit code
+
+ocb() { exec $OCAMLBUILD $FLAGS $*; }
rule() {
check_config
case $1 in
- clean) ocb -clean && rm -rf bin/* && rm -f $MYCFG;;
+ clean) rm -rf bin/* $MYCFG && ocb -clean;;
all) ocb coq.otarget;;
win32) ocb coq-win32.otarget;;
*) ocb $1;;