From 750e92043e0811fe990291d113ecca9650ac767c Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Wed, 7 Jun 2006 19:38:53 +0000 Subject: [PATCH] - Patch the correct version of python in the Info.plists at build time, instead of relying on a maintainer to update them before releases. - Remove the now empty Mac/OSX directory --- Mac/IDLE/{Info.plist => Info.plist.in} | 6 +++--- Mac/IDLE/Makefile.in | 9 +++++++-- Mac/PythonLauncher/{Info.plist => Info.plist.in} | 6 +++--- Mac/PythonLauncher/Makefile.in | 7 +++++-- 4 files changed, 18 insertions(+), 10 deletions(-) rename Mac/IDLE/{Info.plist => Info.plist.in} (91%) rename Mac/PythonLauncher/{Info.plist => Info.plist.in} (93%) diff --git a/Mac/IDLE/Info.plist b/Mac/IDLE/Info.plist.in similarity index 91% rename from Mac/IDLE/Info.plist rename to Mac/IDLE/Info.plist.in index bbe2ea1182..58e913c569 100644 --- a/Mac/IDLE/Info.plist +++ b/Mac/IDLE/Info.plist.in @@ -36,7 +36,7 @@ CFBundleExecutable IDLE CFBundleGetInfoString - 2.5, © 001-2006 Python Software Foundation + %VERSION%, © 001-2006 Python Software Foundation CFBundleIconFile IDLE.icns CFBundleIdentifier @@ -48,8 +48,8 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.5 + %VERSION% CFBundleVersion - 2.5 + %VERSION% diff --git a/Mac/IDLE/Makefile.in b/Mac/IDLE/Makefile.in index 7359aaec00..2f63892a07 100644 --- a/Mac/IDLE/Makefile.in +++ b/Mac/IDLE/Makefile.in @@ -39,16 +39,21 @@ clean: IDLE.app: \ $(srcdir)/../Icons/IDLE.icns $(srcdir)/idlemain.py \ $(srcdir)/../Icons/PythonSource.icns \ - $(srcdir)/../Icons/PythonCompiled.icns + $(srcdir)/../Icons/PythonCompiled.icns Info.plist rm -fr IDLE.app $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \ --builddir=. \ --name=IDLE \ --link-exec \ - --plist=$(srcdir)/Info.plist \ + --plist=Info.plist \ --mainprogram=$(srcdir)/idlemain.py \ --iconfile=$(srcdir)/../Icons/IDLE.icns \ --resource=$(srcdir)/../Icons/PythonSource.icns \ --resource=$(srcdir)/../Icons/PythonCompiled.icns \ --python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \ build + + +Info.plist: $(srcdir)/Info.plist.in + sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist + diff --git a/Mac/PythonLauncher/Info.plist b/Mac/PythonLauncher/Info.plist.in similarity index 93% rename from Mac/PythonLauncher/Info.plist rename to Mac/PythonLauncher/Info.plist.in index 1dd795f776..3c726d7524 100644 --- a/Mac/PythonLauncher/Info.plist +++ b/Mac/PythonLauncher/Info.plist.in @@ -40,7 +40,7 @@ CFBundleExecutable PythonLauncher CFBundleGetInfoString - 2.5, © 001-2006 Python Software Foundation + %VERSION%, © 001-2006 Python Software Foundation CFBundleIconFile PythonLauncher.icns CFBundleIdentifier @@ -52,11 +52,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.5 + %VERSION% CFBundleSignature PytL CFBundleVersion - 2.5 + %VERSION% NSMainNibFile MainMenu NSPrincipalClass diff --git a/Mac/PythonLauncher/Makefile.in b/Mac/PythonLauncher/Makefile.in index 19763a66ca..b4b126c908 100644 --- a/Mac/PythonLauncher/Makefile.in +++ b/Mac/PythonLauncher/Makefile.in @@ -35,7 +35,7 @@ clean: rm -f *.o "Python Launcher" rm -rf "Python Launcher.app" -Python\ Launcher.app: \ +Python\ Launcher.app: Info.plist \ Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \ $(srcdir)/../Icons/PythonSource.icns \ $(srcdir)/../Icons/PythonCompiled.icns \ @@ -51,7 +51,7 @@ Python\ Launcher.app: \ --resource=$(srcdir)/../Icons/PythonCompiled.icns \ --resource=$(srcdir)/English.lproj \ --resource=$(srcdir)/factorySettings.plist \ - --plist=$(srcdir)/Info.plist \ + --plist Info.plist \ build find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r @@ -76,3 +76,6 @@ main.o: $(srcdir)/main.m Python\ Launcher: $(OBJECTS) $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon + +Info.plist: $(srcdir)/Info.plist.in + sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist -- 2.50.0