File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # publishes nightly build if $publish_to is set in environment.
4+ #
5+
6+ [[ $# -eq 1 ]] || {
7+ cat << EOM
8+ Usage: $0 <scala version>
9+
10+ Environment variables:
11+ publish_to rsync destination
12+ EOM
13+ exit 0
14+ }
15+ version=" $1 "
16+
17+ [[ -d dists/archives ]] || {
18+ echo " Can't find build, has it completed? No directory at dists/archives"
19+ exit 1
20+ }
21+
22+ if [[ -z $publish_to ]]; then
23+ echo " Nothing to publish."
24+ else
25+ echo " Publishing nightly build to $publish_to "
26+ # Archive Scala nightly distribution
27+ rsync -az dists/archives/ " $publish_to /distributions"
28+ # don't publish docs in 2.8.x
29+ [[ $version == " 2.8.x" ]] || rsync -az build/scaladoc/ " $publish_to /docs"
30+ # sbaz
31+ [[ -d dists/sbaz ]] && rsync -az dists/sbaz/ " $publish_to /sbaz"
32+ fi
You can’t perform that action at this time.
0 commit comments