]> granicus.if.org Git - python/commitdiff
Backport: #1095: ln -f doesn't work portably.
authorGeorg Brandl <georg@python.org>
Fri, 7 Sep 2007 20:12:59 +0000 (20:12 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 7 Sep 2007 20:12:59 +0000 (20:12 +0000)
Makefile.pre.in

index 078f2d9025b5fd289eabde37a2f49e0fa933d62f..9cf1be0b17892212b2bac9e47cf802c5e96da27b 100644 (file)
@@ -656,7 +656,8 @@ bininstall: altbininstall
        else true; \
        fi
        (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
-       (cd $(DESTDIR)$(BINDIR); $(LN) -sf python$(VERSION)-config python-config)
+       -rm -f $(DESTDIR)$(BINDIR)/python-config
+       (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
 
 # Install the interpreter with $(VERSION) affixed
 # This goes into $(exec_prefix)