summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2006-05-23 11:04:24 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2006-05-23 11:04:24 (GMT)
commitda89b99533e4239344a4e31067e26325ae2b4c1a (patch)
treed45722adca24f54c55caaf3aa77e0f02b64cf8cd /Mac
parent7c88dcc5aba28570ef7c1a957baaceb6e47cfc41 (diff)
downloadcpython-da89b99533e4239344a4e31067e26325ae2b4c1a.zip
cpython-da89b99533e4239344a4e31067e26325ae2b4c1a.tar.gz
cpython-da89b99533e4239344a4e31067e26325ae2b4c1a.tar.bz2
Avoid creating a mess when installing a framework for the second time.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/OSX/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/Mac/OSX/Makefile.in b/Mac/OSX/Makefile.in
index 14b7f51..a44191d 100644
--- a/Mac/OSX/Makefile.in
+++ b/Mac/OSX/Makefile.in
@@ -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