Skip to content

Commit ff7f9fc

Browse files
committed
Unified 2.8.x and 2.9.x build scripts.
1 parent a2be0af commit ff7f9fc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

tools/epfl-build-2.8.x renamed to tools/epfl-build-2.x.x

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
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
1115
mavenSettings="/home/linuxsoft/apps/hudson-maven-settings/settings.xml"
@@ -20,10 +24,11 @@ ant docscomp
2024
if [ -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" )

0 commit comments

Comments
 (0)