File tree Expand file tree Collapse file tree 3 files changed +26
-18
lines changed Expand file tree Collapse file tree 3 files changed +26
-18
lines changed Original file line number Diff line number Diff line change 3
3
# create Info.plist
4
4
5
5
ADD_CUSTOM_TARGET (Info.plist ALL
6
- VERSION =`grep VERSION ${CMAKE_BINARY_DIR} /qgsconfig.h | head -1 |
7
- sed -e "s/#define VERSION //"
8
- -e "s/\\\" //g" ` &&
9
- SVNVERSION=`grep QGSSVNVERSION ${CMAKE_BINARY_DIR} /qgssvnversion.h |
10
- sed -e "s/#define QGSSVNVERSION //"
11
- -e "s/\\\" //g" ` &&
12
- sed -e "s/@VERSION/$$VERSION/"
13
- -e "s/@SHORTVERSION/$$VERSION/"
14
- -e "s/@SVNVERSION/$$SVNVERSION/"
15
- < ${CMAKE_CURRENT_SOURCE_DIR} /Info.plist.in > Info.plist
16
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /Info.plist.in
17
- ${CMAKE_BINARY_DIR} /qgsconfig.h )
18
-
19
- ADD_DEPENDENCIES (Info.plist svnversion )
6
+ DEPENDS ${SVN_MARKER}
7
+ COMMAND ${CMAKE_COMMAND}
8
+ -D CURRENT_SOURCE_DIR =${CMAKE_CURRENT_SOURCE_DIR}
9
+ -D VERSION =${COMPLETE_VERSION}-${RELEASE_NAME}
10
+ -P ${CMAKE_CURRENT_SOURCE_DIR} /Info.plist.cmake )
20
11
21
12
#############################################################
22
13
# process subdirs
Original file line number Diff line number Diff line change
1
+ SET (CMAKE_BACKWARDS_COMPATIBILITY "2.4" )
2
+
3
+ # See if we have svn installed
4
+ FIND_PROGRAM (SVNVERSION svnversion )
5
+
6
+ # Read the revision if installed, else set to "unknown"
7
+ IF (SVNVERSION )
8
+ EXEC_PROGRAM (${SVNVERSION} ARGS ${CURRENT_SOURCE_DIR} OUTPUT_VARIABLE REVISION )
9
+ ELSE (SVNVERSION )
10
+ SET (REVISION unknown )
11
+ ENDIF (SVNVERSION )
12
+
13
+ # Create Info.plist
14
+ CONFIGURE_FILE (${CURRENT_SOURCE_DIR} /Info.plist.in
15
+ ${CMAKE_CURRENT_BINARY_DIR} /Info.plist )
Original file line number Diff line number Diff line change 11
11
<key >CFBundleSignature</key >
12
12
<string >QGIS</string >
13
13
<key >CFBundleGetInfoString</key >
14
- <string >QGIS @VERSION (@SVNVERSION ), © 2002-2008 QGIS Development Team</string >
14
+ <string >QGIS @VERSION@ (@REVISION@ ), © 2002-2008 QGIS Development Team</string >
15
15
<key >CFBundleShortVersionString</key >
16
- <string >@SHORTVERSION (@SVNVERSION )</string >
16
+ <string >@VERSION@ (@REVISION@ )</string >
17
17
<key >CFBundleVersion</key >
18
- <string >@VERSION</string >
18
+ <string >@VERSION@ (@REVISION@) </string >
19
19
<key >CFBundleIconFile</key >
20
20
<string >qgis.icns</string >
21
21
<key >CFBundleDocumentTypes</key >
176
176
</array >
177
177
<key >CFBundleLocalizations</key >
178
178
<array >
179
- <string >ar</string >
180
179
<string >en</string >
180
+ <string >ar</string >
181
181
<string >cs_CZ</string >
182
182
<string >de</string >
183
183
<string >es</string >
184
184
<string >fr</string >
185
+ <string >hu</string >
185
186
<string >id</string >
186
187
<string >it</string >
187
188
<string >ja</string >
189
+ <string >lo</string >
188
190
<string >lt</string >
189
191
<string >lv</string >
190
192
<string >mn</string >
You can’t perform that action at this time.
0 commit comments