aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2002-07-16 17:31:42 +0000
committerDavid Aspinall2002-07-16 17:31:42 +0000
commitc73902a843a0c455058429372df85e815a1e8be2 (patch)
tree79fedcb4f170e39b38fece5aee76108e9038dc0b
parentf7ce1207c76bcc5b4517c94b026906821bd4bf1f (diff)
Tweak link creation/deletion
-rw-r--r--Makefile.devel11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile.devel b/Makefile.devel
index dce01a0e..06f3d795 100644
--- a/Makefile.devel
+++ b/Makefile.devel
@@ -378,8 +378,8 @@ dist:
@echo " Making compressed tar file..."
@echo "*************************************************"
for f in $(IGNOREDFILES); do echo $$f >> ignoredfiles; done
-# Don't link the latest version
-# (cd $(DISTBUILDIR); ln -sf $(RELEASENAME) $(NAME))
+# link the long name to short name for convenience of user
+ (cd $(DISTBUILDIR); ln -sf $(RELEASENAME) $(NAME))
$(TAR) cvzf $(DISTBUILDIR)/$(RELEASENAMETARGZ) -C $(DISTBUILDIR) $(RELEASENAME) $(NAME) -X ignoredfiles
rm -f ignoredfiles
@echo "*************************************************"
@@ -424,9 +424,12 @@ release: distclean tag dist develdist
@echo " Making release (installing tarball distributions)."
@echo "*************************************************"
mkdir -p $(RELEASEDIR)
+# clean source dir (remove link to this release)
+ (cd $(DISTBUILDDIR); rm -f $(NAME))
+# clean target dir (remove link for latest release)
(cd $(RELEASEDIR); rm -f $(LASTESTNAME); rm -rf $(RELEASENAME))
-# seem to need R instead of r here now,
-# otherwise cp tries to make hard link instead of symlink?!
+# Seem to need R instead of r here now,
+# Otherwise cp tries to make hard link instead of symlink?!
cp -pfdR $(DISTBUILDIR)/* $(RELEASEDIR)
(cd $(RELEASEDIR); ln -s $(RELEASENAME) $(LATESTNAME))
(cd $(RELEASEDIR); ln -sf $(RELEASENAMETARGZ) $(LATESTNAME).tar.gz)