summaryrefslogtreecommitdiff
path: root/tools/epfl-build
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-09 10:55:01 -0800
committerPaul Phillips <paulp@improving.org>2011-12-09 10:55:01 -0800
commitb852675c5daa2dca9b864ff8d2710490b9d51cf8 (patch)
tree794cc21fcf063a361d2cba8acfab017e36238780 /tools/epfl-build
parentceba686503dc2fcd5637925d7153ee526958c89f (diff)
parentabfc737822739d258aa22387eb1acd11df1ff5cd (diff)
downloadscala-b852675c5daa2dca9b864ff8d2710490b9d51cf8.tar.gz
scala-b852675c5daa2dca9b864ff8d2710490b9d51cf8.tar.bz2
scala-b852675c5daa2dca9b864ff8d2710490b9d51cf8.zip
Merge branch 'common-build-script' into 2.8.x
Diffstat (limited to 'tools/epfl-build')
-rwxr-xr-xtools/epfl-build29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/epfl-build b/tools/epfl-build
new file mode 100755
index 0000000000..e8f1be4a46
--- /dev/null
+++ b/tools/epfl-build
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+#
+# builds nightlies
+
+[[ $# -gt 0 ]] || {
+ cat <<EOM
+Usage: $0 <version> [opt opt ...]
+
+ Everything after the version is supplied to scalac and partest.
+ Example: $0 -Xcheckinit -Ycheck:all
+
+Environment variables:
+
+ EXTRA_TARGETS Additional ant targets to run after nightly
+
+EOM
+ exit 0
+}
+
+# version isn't actually used at present.
+scalaVersion="$1" && shift
+scalaArgs="-Dscalac.args=\"$@\" -Dpartest.scalac_opts=\"$@\""
+
+ant all.clean && ./pull-binary-libs.sh
+
+ant $scalaArgs build-opt &&
+ant $scalaArgs nightly &&
+for target in $EXTRA_TARGETS; do ant $target ; done
+# [[ -n "$BUILD_DOCSCOMP" ]] && ant docscomp