Skip to content

Commit 2f33705

Browse files
committed
Injecting epfl-publish into merge-base.
1 parent 5c7086b commit 2f33705

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tools/epfl-publish

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

0 commit comments

Comments
 (0)