summaryrefslogtreecommitdiff
path: root/tools/epfl-build-2.x.x
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-09 09:49:04 -0800
committerPaul Phillips <paulp@improving.org>2011-12-09 10:54:20 -0800
commitff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864 (patch)
tree72a2e3eb1449c73fb829f5aee874bb5a42991a77 /tools/epfl-build-2.x.x
parenta2be0aff10f69ef4910ac73ea099bdbb8ff29654 (diff)
downloadscala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.tar.gz
scala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.tar.bz2
scala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.zip
Unified 2.8.x and 2.9.x build scripts.
Diffstat (limited to 'tools/epfl-build-2.x.x')
-rwxr-xr-xtools/epfl-build-2.x.x35
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/epfl-build-2.x.x b/tools/epfl-build-2.x.x
new file mode 100755
index 0000000000..7bc884c162
--- /dev/null
+++ b/tools/epfl-build-2.x.x
@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+#
+
+[[ $# -gt 0 ]] || {
+ echo "Usage: $0 <version> [publish destination]"
+ echo ""
+ exit 0
+}
+
+version="$1"
+shift
+rsyncDest="$1"
+
+# should not be hardcoded
+mavenSettings="/home/linuxsoft/apps/hudson-maven-settings/settings.xml"
+
+# main build sequence
+ant all.clean
+./pull-binary-libs.sh
+ant nightly
+ant docscomp
+
+# publish nightly build
+if [ -n "$rsyncDest" ]; then
+ echo "Copying nightly build to $rsyncDest"
+ # Archive Scala nightly distribution
+ rsync -az dists/archives/ "$rsyncDest/distributions"
+ # SKIP PUBLISHING DOCS IN 2.8.X BRANCH
+ if [[ $version != "2.8.x" ]]; then
+ rsync -az build/scaladoc/ "$rsyncDest/docs"
+ fi
+ rsync -az dists/sbaz/ "$rsyncDest/sbaz"
+ # Deploy the maven artifacts on scala-tools.org
+ ( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file="$mavenSettings" )
+fi