]> granicus.if.org Git - python/commitdiff
Patch #696613 by Ben Laurie: use "test -L" to test for symlinks in stead
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Mar 2003 10:52:39 +0000 (10:52 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Mar 2003 10:52:39 +0000 (10:52 +0000)
of the older (and, according to some manpages, deprecated) "test -h".

Makefile.pre.in

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