]> granicus.if.org Git - python/commitdiff
When installing the "python" link in bindir also test for a pre-existing
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 9 Aug 2002 14:42:57 +0000 (14:42 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 9 Aug 2002 14:42:57 +0000 (14:42 +0000)
symlink and remove it.

Makefile.pre.in

index 985e73ea58921af44719581ddb01f8a9e77c0185..6d1af496862dbcd49175d8b027f622086b82bac4 100644 (file)
@@ -560,7 +560,7 @@ $(DESTSHARED):
 
 # Install the interpreter (by creating a hard link to python$(VERSION))
 bininstall:    altbininstall
-       -if test -f $(BINDIR)/$(PYTHON); \
+       -if test -f $(BINDIR)/$(PYTHON) -o -L $(BINDIR)/$(PYTHON); \
        then rm -f $(BINDIR)/$(PYTHON); \
        else true; \
        fi