Description:
Fix broken symbolic links in release tarballs.
Now, when the release is created (make distfile) the symbolic links
are followed.
Another solution could be to create relative links in "make build*".
However, I preferred to dereference the links for two reasons:
- it is simple;
- it allows uncompresing our release also in filesystems not supporting
symlinks.
Reviewers: mp+140662_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix broken symbolic links in release tarballs.
Now, when the release is created (make distfile) the symbolic links
are followed.
Another solution could be to create relative links in "make build*".
However, I preferred to dereference the links for two reasons:
- it is simple;
- it allows uncompresing our release also in filesystems not supporting
symlinks.
https:/ /code.launchpad .net/~frankban/ juju-gui/ distfile- fixes/+ merge/140662
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6962044/
Affected files:
M Makefile
A [revision details]
Index: Makefile IS_CLEAN) " RELEASE_ NAME)/| " -f $(RELEASE_FILE) * RELEASE_ NAME)/| " -f $(RELEASE_FILE) * ******* ******* ******* ******* ******* ******* ******* ******* "
=== modified file 'Makefile'
--- Makefile 2012-12-18 22:18:29 +0000
+++ Makefile 2012-12-19 12:09:20 +0000
@@ -399,8 +399,9 @@
@echo "$(BRANCH_
ifdef BRANCH_IS_GOOD
mkdir -p releases
- tar c --auto-compress --exclude-vcs --exclude releases \
- --transform "s|^|$(
+ # When creating the tarball, ensure all symbolic links are followed.
+ tar -c --auto-compress --exclude-vcs --exclude releases \
+ --dereference --transform "s|^|$(
@echo "Release was created in $(RELEASE_FILE)."
else
@echo "******
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision:
<email address hidden>