diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-09 09:49:04 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-09 10:54:20 -0800 |
commit | ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864 (patch) | |
tree | 72a2e3eb1449c73fb829f5aee874bb5a42991a77 | |
parent | a2be0aff10f69ef4910ac73ea099bdbb8ff29654 (diff) | |
download | scala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.tar.gz scala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.tar.bz2 scala-ff7f9fcaa2958e3ef386c7a0a20233b6bb9e3864.zip |
Unified 2.8.x and 2.9.x build scripts.
-rwxr-xr-x | tools/epfl-build-2.x.x (renamed from tools/epfl-build-2.8.x) | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tools/epfl-build-2.8.x b/tools/epfl-build-2.x.x index 0fd64cf842..7bc884c162 100755 --- a/tools/epfl-build-2.8.x +++ b/tools/epfl-build-2.x.x @@ -1,11 +1,15 @@ -#!/bin/sh -e +#!/usr/bin/env bash # -# Jenkins should run tools/$0 --publish "$ssh_conn:$nightly_dir" -unset rsyncDest -if [ "$1" == "--publish" ]; then - rsyncDest="$2" -fi +[[ $# -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" @@ -20,10 +24,11 @@ ant docscomp if [ -n "$rsyncDest" ]; then echo "Copying nightly build to $rsyncDest" # Archive Scala nightly distribution - # Tailing slash is required, otherwise the directory gets synchronized instead of its content rsync -az dists/archives/ "$rsyncDest/distributions" # SKIP PUBLISHING DOCS IN 2.8.X BRANCH - # rsync -az scala/build/scaladoc/ "$rsyncDest/docs" + 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" ) |