summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorsimonm <unknown>1997-10-13 09:39:23 +0000
committersimonm <unknown>1997-10-13 09:39:23 +0000
commit50bf84a3a19fd3e88a4382a91979a45f315f5e63 (patch)
treed46d89c3a0cac7d4d4e0a961ef6d57be92b7a98b /distrib
parenta9ac7387053e5fd6a568d92862833eebc414fcda (diff)
downloadhaskell-50bf84a3a19fd3e88a4382a91979a45f315f5e63.tar.gz
[project @ 1997-10-13 09:39:23 by simonm]
Link ghc to ghc-$(version), not the other way around. This means that old versions won't be spammed when a new one is installed. To go in 3.00
Diffstat (limited to 'distrib')
-rw-r--r--distrib/Makefile-bin.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in
index d300e9613f..f7775e204f 100644
--- a/distrib/Makefile-bin.in
+++ b/distrib/Makefile-bin.in
@@ -178,11 +178,15 @@ config-pkgs ::
mk-version-symlinks ::
- @for i in $(VERSION_SYMLINKS_FOR) ""; do \
- if [ "x$$i" != "x" ]; then \
- echo "Symlinking $$i to $$i-$(version)"; \
- (cd bin/$(platform)/$(package)-$(version); $(RM) $$i-$(version); $(LN_S) $$i $$i-$(version) ); \
- fi;\
+ @for i in $(VERSION_SYMLINKS_FOR) ""; do \
+ if [ "x$$i" != "x" ]; then \
+ echo "Symlinking $$i to $$i-$(version)"; \
+ (cd bin/$(platform)/$(package)-$(version); \
+ $(RM) $$i-$(version); \
+ $(MV) $$i $$i-$(version); \
+ $(LN_S) $$i-$(version) $$i \
+ ); \
+ fi; \
done
in-place ::