diff options
author | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:46:51 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2010-07-21 09:46:51 +0200 |
commit | 5b7eafd0f00a16d78f99a27f5c7d5a0de77dc7e6 (patch) | |
tree | 631ad791a7685edafeb1fb2e8faeedc8379318ae /build | |
parent | da178a880e3ace820b41d38b191d3785b82991f5 (diff) |
Imported Upstream snapshot 8.3~beta0+13298
Diffstat (limited to 'build')
-rwxr-xr-x | build | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +#!/bin/sh + +FLAGS= +OCAMLBUILD=ocamlbuild +CFG=config/coq_config.ml +MYCFG=myocamlbuild_config.ml + +check_config() { + [ -f $CFG ] || (echo "please run ./configure first"; exit 1) + [ -L $MYCFG ] || ln -sf $CFG $MYCFG +} + +ocb() { $OCAMLBUILD $FLAGS $*; } + +rule() { + check_config + case $1 in + clean) ocb -clean && rm -rf bin/* && rm -f $MYCFG;; + all) ocb coq.otarget;; + win32) ocb coq-win32.otarget;; + *) ocb $1;; + esac; +} + +if [ $# -eq 0 ]; then + rule all +else + while [ $# -gt 0 ]; do + rule $1; + shift + done +fi |