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
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 ::