[project @ 1997-10-13 09:44:11 by simonm]
authorsimonm <unknown>
Mon, 13 Oct 1997 09:44:11 +0000 (09:44 +0000)
committersimonm <unknown>
Mon, 13 Oct 1997 09:44:11 +0000 (09:44 +0000)
do the symlink thing when installing, not in the local tree.

distrib/Makefile-bin.in

index f7775e2..5793879 100644 (file)
@@ -178,15 +178,11 @@ config-pkgs ::
 
 
 mk-version-symlinks ::
 
 
 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);                   \
-              $(MV)   $$i $$i-$(version);              \
-             $(LN_S) $$i-$(version) $$i                \
-            );                                         \
-         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); $(LN_S) $$i $$i-$(version) ); \
+         fi;\
        done
 
 in-place ::
        done
 
 in-place ::
@@ -208,9 +204,13 @@ install-bin:
           $(INSTALL_BIN) bin/$(platform)/$(package)-$(version)/$$i $(bindir); \
        done;
        for i in $(VERSION_SYMLINKS_FOR) ""; do \
           $(INSTALL_BIN) bin/$(platform)/$(package)-$(version)/$$i $(bindir); \
        done;
        for i in $(VERSION_SYMLINKS_FOR) ""; do \
-          if [ "x$$i" != "x" ]; then \
-               ( cd $(bindir); $(LN_S) $$i $$i-$(version) ); \
-          fi; \
+          if [ "x$$i" != "x" ]; then           \
+               ( cd $(bindir);                 \
+                 $(RM) $$i-$(version);         \
+                 $(MV) $$i $$i-$(version);     \
+                 $(LN_S) $$i-$(version) $$i    \
+               );                              \
+          fi;                                  \
        done
 
 
        done