summaryrefslogtreecommitdiffstats
path: root/Mac/Makefile.in
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 20:00:00 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 20:00:00 (GMT)
commitf29b6b4b773beecf69a0c059f452161d2cceda18 (patch)
tree68bbef2da51e10bf2184b24df84b1e5e42942a91 /Mac/Makefile.in
parent8593a7568817bf36039460e34826822bec9c3904 (diff)
downloadcpython-f29b6b4b773beecf69a0c059f452161d2cceda18.zip
cpython-f29b6b4b773beecf69a0c059f452161d2cceda18.tar.gz
cpython-f29b6b4b773beecf69a0c059f452161d2cceda18.tar.bz2
Merged revisions 70741 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70741 | ronald.oussoren | 2009-03-30 14:56:25 -0500 (Mon, 30 Mar 2009) | 2 lines Fixes issue 5270 ........
Diffstat (limited to 'Mac/Makefile.in')
-rw-r--r--Mac/Makefile.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Makefile.in b/Mac/Makefile.in
index f697a19..40db008 100644
--- a/Mac/Makefile.in
+++ b/Mac/Makefile.in
@@ -14,6 +14,7 @@ DESTDIR=
LDFLAGS=@LDFLAGS@
FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@
PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
+PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@
# These are normally glimpsed from the previous set
@@ -206,6 +207,12 @@ install_Python:
done; \
done
$(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"
+ sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \
+ -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \
+ -c 'import platform; print(platform.python_version())'`!g" \
+ < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \
+ > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist"
+ rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in"
install_Python4way: install_Python
lipo -extract i386 -extract ppc7400 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"