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
2
2
#
3
- # Jenkins should run tools/$0 --publish "$ssh_conn:$nightly_dir"
4
3
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 "
9
13
10
14
# should not be hardcoded
11
15
mavenSettings=" /home/linuxsoft/apps/hudson-maven-settings/settings.xml"
@@ -20,10 +24,11 @@ ant docscomp
20
24
if [ -n " $rsyncDest " ]; then
21
25
echo " Copying nightly build to $rsyncDest "
22
26
# Archive Scala nightly distribution
23
- # Tailing slash is required, otherwise the directory gets synchronized instead of its content
24
27
rsync -az dists/archives/ " $rsyncDest /distributions"
25
28
# 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
27
32
rsync -az dists/sbaz/ " $rsyncDest /sbaz"
28
33
# Deploy the maven artifacts on scala-tools.org
29
34
( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file=" $mavenSettings " )
You can’t perform that action at this time.
0 commit comments