Permalink
Browse files

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.
  • Loading branch information...
1 parent 132a732 commit 83c059dd776408a921473b85685192cf807c3dbd @adriaanm adriaanm committed Apr 30, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/build/pack.xml
View
@@ -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>

0 comments on commit 83c059d

Please sign in to comment.