summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Weidauer <sven.weidauer@gmail.com>2011-01-23 19:03:39 +0000
committerSven Weidauer <sven.weidauer@gmail.com>2011-01-23 19:03:39 +0000
commitf9ad37983008cef312e1bcab78d8f92c6ecf1ec3 (patch)
treeee8cab363a6dc50177b2ed597c9bfe69bbbd5352
parentce2f4da8ac557b325fbcbd9ba2e67e579e60e2ea (diff)
downloadnetsurf-f9ad37983008cef312e1bcab78d8f92c6ecf1ec3.tar.gz
netsurf-f9ad37983008cef312e1bcab78d8f92c6ecf1ec3.tar.bz2
Generating version info in Info.plist from version.c
svn path=/trunk/netsurf/; revision=11468
-rw-r--r--cocoa/Makefile.target5
-rw-r--r--cocoa/res/NetSurf-Info.plist4
2 files changed, 5 insertions, 4 deletions
diff --git a/cocoa/Makefile.target b/cocoa/Makefile.target
index f1c308515..584fa7e04 100644
--- a/cocoa/Makefile.target
+++ b/cocoa/Makefile.target
@@ -161,5 +161,6 @@ NetSurf.app/Contents/Info.plist: cocoa/res/NetSurf-Info.plist cocoa/Makefile.tar
sed -e 's/$${EXECUTABLE_NAME}/$(EXETARGET)/' \
-e 's/$${PRODUCT_NAME.*}/$(EXETARGET)/' \
-e 's/$${MACOSX_DEPLOYMENT_TARGET}/$(MACOSX_VERSION)/' \
- < cocoa/res/NetSurf-Info.plist > NetSurf.app/Contents/Info.plist
- \ No newline at end of file
+ -e 's/$${NETSURF_VERSION}/$(VERSION_FULL)/' \
+ -e 's/$${NETSURF_SHORT_VERSION}/$(VERSION_MAJ).$(VERSION_MIN)/' \
+ < cocoa/res/NetSurf-Info.plist > NetSurf.app/Contents/Info.plist \ No newline at end of file
diff --git a/cocoa/res/NetSurf-Info.plist b/cocoa/res/NetSurf-Info.plist
index a5c540f55..fdb4eef27 100644
--- a/cocoa/res/NetSurf-Info.plist
+++ b/cocoa/res/NetSurf-Info.plist
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>${NETSURF_VERSION}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>${NETSURF_SHORT_VERSION}</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSMainNibFile</key>