File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh -e
1+ #! /usr/ bin/env bash
22#
3- # Jenkins should run tools/$0 --publish "$ssh_conn:$nightly_dir"
43
5- unset rsyncDest
6- if [ " $1 " == " --publish" ]; then
7- rsyncDest=" $2 "
8- fi
4+ [[ $# -gt 0 ]] || {
5+ echo " Usage: $0 <version> [publish destination]"
6+ echo " "
7+ exit 0
8+ }
9+
10+ version=" $1 "
11+ shift
12+ rsyncDest=" $1 "
913
1014# should not be hardcoded
1115mavenSettings=" /home/linuxsoft/apps/hudson-maven-settings/settings.xml"
@@ -20,10 +24,11 @@ ant docscomp
2024if [ -n " $rsyncDest " ]; then
2125 echo " Copying nightly build to $rsyncDest "
2226 # Archive Scala nightly distribution
23- # Tailing slash is required, otherwise the directory gets synchronized instead of its content
2427 rsync -az dists/archives/ " $rsyncDest /distributions"
2528 # SKIP PUBLISHING DOCS IN 2.8.X BRANCH
26- # rsync -az scala/build/scaladoc/ "$rsyncDest/docs"
29+ if [[ $version != " 2.8.x" ]]; then
30+ rsync -az build/scaladoc/ " $rsyncDest /docs"
31+ fi
2732 rsync -az dists/sbaz/ " $rsyncDest /sbaz"
2833 # Deploy the maven artifacts on scala-tools.org
2934 ( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file=" $mavenSettings " )
You can’t perform that action at this time.
0 commit comments