summaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-04-30 14:56:47 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-04-30 14:56:47 +0200
commit83c059dd776408a921473b85685192cf807c3dbd (patch)
treef12a1446adc6328a1b876077b77af424ae0da057 /src/build
parent132a7325235240c2bb0de45c8fe3b53578153714 (diff)
downloadscala-83c059dd776408a921473b85685192cf807c3dbd.tar.gz
scala-83c059dd776408a921473b85685192cf807c3dbd.tar.bz2
scala-83c059dd776408a921473b85685192cf807c3dbd.zip
use relative symlink in distpack
To simplify building a release on jenkins, we run distpack-opt in one job, store the `dists/` directory in a tar ball, archive that artifact and copy it to the downstream jobs that package on windows and unix. To make the tarball portable between machines, it must not use absolute symlinks.
Diffstat (limited to 'src/build')
-rw-r--r--src/build/pack.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build/pack.xml b/src/build/pack.xml
index 381d3f1931..20c4034107 100644
--- a/src/build/pack.xml
+++ b/src/build/pack.xml
@@ -112,8 +112,10 @@ MAIN DISTRIBUTION PACKAGING
</target>
<target name="pack-archives.latest.unix" depends="pack-archives.src" unless="os.win">
+ <!-- be sure to use a relative symlink to make the distribution portable,
+ `resource` is relative to directory of `link` -->
<symlink link="${dists.dir}/archives/scala-latest-sources.tgz"
- resource="${dists.dir}/archives/scala-${version.number}-sources.tgz"
+ resource="scala-${version.number}-sources.tgz"
overwrite="yes"/>
</target>