diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-06-07 19:38:53 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-06-07 19:38:53 (GMT) |
commit | 750e92043e0811fe990291d113ecca9650ac767c (patch) | |
tree | 97c12b11d1c5173702d7f2be862f3b47462137d7 /Mac | |
parent | 2db3a8f73ea74dd9403ce558e360f4583419a998 (diff) | |
download | cpython-750e92043e0811fe990291d113ecca9650ac767c.zip cpython-750e92043e0811fe990291d113ecca9650ac767c.tar.gz cpython-750e92043e0811fe990291d113ecca9650ac767c.tar.bz2 |
- 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
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/IDLE/Info.plist.in (renamed from Mac/IDLE/Info.plist) | 6 | ||||
-rw-r--r-- | Mac/IDLE/Makefile.in | 9 | ||||
-rw-r--r-- | Mac/PythonLauncher/Info.plist.in (renamed from Mac/PythonLauncher/Info.plist) | 6 | ||||
-rw-r--r-- | Mac/PythonLauncher/Makefile.in | 7 |
4 files changed, 18 insertions, 10 deletions
diff --git a/Mac/IDLE/Info.plist b/Mac/IDLE/Info.plist.in index bbe2ea1..58e913c 100644 --- a/Mac/IDLE/Info.plist +++ b/Mac/IDLE/Info.plist.in @@ -36,7 +36,7 @@ <key>CFBundleExecutable</key> <string>IDLE</string> <key>CFBundleGetInfoString</key> - <string>2.5, © 001-2006 Python Software Foundation</string> + <string>%VERSION%, © 001-2006 Python Software Foundation</string> <key>CFBundleIconFile</key> <string>IDLE.icns</string> <key>CFBundleIdentifier</key> @@ -48,8 +48,8 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>2.5</string> + <string>%VERSION%</string> <key>CFBundleVersion</key> - <string>2.5</string> + <string>%VERSION%</string> </dict> </plist> diff --git a/Mac/IDLE/Makefile.in b/Mac/IDLE/Makefile.in index 7359aae..2f63892 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 index 1dd795f..3c726d7 100644 --- a/Mac/PythonLauncher/Info.plist +++ b/Mac/PythonLauncher/Info.plist.in @@ -40,7 +40,7 @@ <key>CFBundleExecutable</key> <string>PythonLauncher</string> <key>CFBundleGetInfoString</key> - <string>2.5, © 001-2006 Python Software Foundation</string> + <string>%VERSION%, © 001-2006 Python Software Foundation</string> <key>CFBundleIconFile</key> <string>PythonLauncher.icns</string> <key>CFBundleIdentifier</key> @@ -52,11 +52,11 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>2.5</string> + <string>%VERSION%</string> <key>CFBundleSignature</key> <string>PytL</string> <key>CFBundleVersion</key> - <string>2.5</string> + <string>%VERSION%</string> <key>NSMainNibFile</key> <string>MainMenu</string> <key>NSPrincipalClass</key> diff --git a/Mac/PythonLauncher/Makefile.in b/Mac/PythonLauncher/Makefile.in index 19763a6..b4b126c 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 |