[Python-checkins] r69534 - python/branches/py3k/Mac/Makefile.in

ronald.oussoren python-checkins at python.org
Thu Feb 12 16:12:03 CET 2009


Author: ronald.oussoren
Date: Thu Feb 12 16:12:03 2009
New Revision: 69534

Log:
Fix for issue5195, a patch by Ned Deily


Modified:
   python/branches/py3k/Mac/Makefile.in

Modified: python/branches/py3k/Mac/Makefile.in
==============================================================================
--- python/branches/py3k/Mac/Makefile.in	(original)
+++ python/branches/py3k/Mac/Makefile.in	Thu Feb 12 16:12:03 2009
@@ -220,6 +220,23 @@
 	ln -sf $(INSTALLED_PYTHONAPP) "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python"
 	sed -e "s!%prefix%!$(prefix)!g" -e 's!%exe%!$(PYTHONFRAMEWORK)!g' < "$(srcdir)/IDLE/IDLE.app/Contents/MacOS/IDLE" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE"
 	sed "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`!g" < "$(srcdir)/IDLE/IDLE.app/Contents/Info.plist" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/Info.plist"
+	if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ]; then \
+		/bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" \
+			"$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
+		sed -e 's!name= IDLE Classic Windows!name= IDLE Classic OSX!g' \
+			< "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" \
+			> "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def" ; \
+		rm "$(DESTDIR)$(LIBDEST)/idlelib/config-main.def~" ; \
+	fi
+	if [ -f "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ]; then \
+		/bin/cp -p "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" \
+			"$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
+		sed -e 's!zoom-height=<Alt-Key-2>!zoom-height=<Option-Key-0>!g' \
+			-e 's!<Alt-Key-!<Option-Key-!g' \
+			< "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" \
+			> "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def" ; \
+		rm "$(DESTDIR)$(LIBDEST)/idlelib/config-extensions.def~" ; \
+	fi
 	touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
 
 $(INSTALLED_PYTHONAPP): install_Python


More information about the Python-checkins mailing list