summaryrefslogtreecommitdiffstats
path: root/Mac/IDLE/Makefile.in
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2006-06-07 19:38:53 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2006-06-07 19:38:53 (GMT)
commit750e92043e0811fe990291d113ecca9650ac767c (patch)
tree97c12b11d1c5173702d7f2be862f3b47462137d7 /Mac/IDLE/Makefile.in
parent2db3a8f73ea74dd9403ce558e360f4583419a998 (diff)
downloadcpython-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/IDLE/Makefile.in')
-rw-r--r--Mac/IDLE/Makefile.in9
1 files changed, 7 insertions, 2 deletions
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
+