]> granicus.if.org Git - python/commitdiff
Avoid creating a mess when installing a framework for the second time.
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 23 May 2006 11:04:24 +0000 (11:04 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 23 May 2006 11:04:24 +0000 (11:04 +0000)
Mac/OSX/Makefile.in

index 14b7f515b577311a1e7d32a9984039eb86fd007e..a44191d055e895fe5013ae3f26d390e310059dff 100644 (file)
@@ -73,11 +73,16 @@ installunixtools:
 install_versionedtools:
        for fn in idle pydoc python-config ;\
        do \
+               if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}" ]; then \
+                       continue ;\
+               fi ;\
                mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)"  ;\
                ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\
        done
-       mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" 
-       ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py"
+       if [ ! -h "$(DESTDIR)$(prefix)/bin/smtpd.py" ]; then \
+               mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py"  ;\
+               ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py" ;\
+       fi
 
 
 pythonw: $(srcdir)/Tools/pythonw.c