Set Info.plist CFBundleShortVersionString via configure

Close #436
This commit is contained in:
Kazuki Sakamoto
2017-01-30 11:11:24 -08:00
parent a311d0da6f
commit f0b4353248
3 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1238,7 +1238,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>8.0</string>
<string>${VIM_SHORT_VERSION_STRING}</string>
<key>CFBundleSignature</key>
<string>VIMM</string>
<key>CFBundleURLTypes</key>
+5
View File
@@ -14192,6 +14192,11 @@ $as_echo "using default" >&6; }
fi
vim_short_version_string=`grep 'define.*VIM_VERSION_SHORT' $srcdir/version.h|sed -E -e 's/.*"([0-9.]*)".*/\1/'`
snapshot=`grep -C2 "Add new patch number below this line" $srcdir/version.c|tail -1|sed -E -e 's/^ *([0-9]+),.*/\1/'`
vim_short_version_string="$vim_short_version_string.$snapshot"
XCODEFLAGS="$XCODEFLAGS VIM_SHORT_VERSION_STRING=$vim_short_version_string"
fi
+6
View File
@@ -4347,6 +4347,12 @@ if test "x$MACOSX" = "xyes"; then
AC_MSG_RESULT($withval) ],
[ AC_MSG_RESULT(using default) ])
dnl Set CFBundleShortVersionString of Info.plist
vim_short_version_string=`grep 'define.*VIM_VERSION_SHORT' $srcdir/version.h|sed -E -e 's/.*"([[0-9.]]*)".*/\1/'`
snapshot=`grep -C2 "Add new patch number below this line" $srcdir/version.c|tail -1|sed -E -e 's/^ *([[0-9]]+),.*/\1/'`
vim_short_version_string="$vim_short_version_string.$snapshot"
XCODEFLAGS="$XCODEFLAGS VIM_SHORT_VERSION_STRING=$vim_short_version_string"
AC_SUBST(XCODEFLAGS)
fi