diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-09 10:54:42 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-09 10:54:42 -0800 |
commit | b6617b091da1ac25c78c1e1323d4d3c9fad8abd7 (patch) | |
tree | 9a8e668b225ea14018e1d2a9b71207296cbffafc /tools/epfl-publish | |
parent | 210cdce586fb7a01c2fbf04fb739c10ebe0dfc34 (diff) | |
parent | abfc737822739d258aa22387eb1acd11df1ff5cd (diff) | |
download | scala-b6617b091da1ac25c78c1e1323d4d3c9fad8abd7.tar.gz scala-b6617b091da1ac25c78c1e1323d4d3c9fad8abd7.tar.bz2 scala-b6617b091da1ac25c78c1e1323d4d3c9fad8abd7.zip |
Merge branch 'common-build-script'
Diffstat (limited to 'tools/epfl-publish')
-rwxr-xr-x | tools/epfl-publish | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/epfl-publish b/tools/epfl-publish new file mode 100755 index 0000000000..5f38bd067b --- /dev/null +++ b/tools/epfl-publish @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# +# publishes nightly build + +[[ $# -eq 2 ]] || { + cat <<EOM +Usage: $0 <scala version> <rsync dest> +EOM + exit 0 +} + +[[ -d dists/archives ]] || { + echo "Can't find build, has it completed? No directory at dists/archives" + exit 1 +} + +version="$1" +rsyncDest="$2" + +# should not be hardcoded +mavenSettings="/home/linuxsoft/apps/hudson-maven-settings/settings.xml" + +echo "Copying nightly build to $rsyncDest" +# Archive Scala nightly distribution +rsync -az dists/archives/ "$rsyncDest/distributions" +# don't publish docs in 2.8.x +[[ $version == "2.8.x" ]] || rsync -az build/scaladoc/ "$rsyncDest/docs" +# sbaz +[[ -d dists/sbaz ]] && rsync -az dists/sbaz/ "$rsyncDest/sbaz" +# Deploy the maven artifacts on scala-tools.org +( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file="$mavenSettings" ) |