Kaydet (Commit) da89b995 authored tarafından Ronald Oussoren's avatar Ronald Oussoren

Avoid creating a mess when installing a framework for the second time.

üst 7c88dcc5
...@@ -73,11 +73,16 @@ installunixtools: ...@@ -73,11 +73,16 @@ installunixtools:
install_versionedtools: install_versionedtools:
for fn in idle pydoc python-config ;\ for fn in idle pydoc python-config ;\
do \ do \
if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}" ]; then \
continue ;\
fi ;\
mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\ mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\
ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\ ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\
done done
mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" if [ ! -h "$(DESTDIR)$(prefix)/bin/smtpd.py" ]; then \
ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py" 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 pythonw: $(srcdir)/Tools/pythonw.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment