diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index d300e9613fbfd5c2d3b278fff2e6d5a8a5085021..f7775e204f46af5d411cef73b5effbfb476e0a69 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 ::