浏览代码

https://trac.osgeo.org/grass/ticket/1940 (wingrass - nsis - script in release mode: !define SVN_REVISION "@GRASS_VERSION_SVN@" not set)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59313 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
cabc3981fd
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      mswindows/GRASS-Installer.nsi.tmpl

+ 5 - 1
mswindows/GRASS-Installer.nsi.tmpl

@@ -30,7 +30,11 @@ SetCompressorDictSize 64
 
 
 ;Version variables
 ;Version variables
 
 
-!define SVN_REVISION "@GRASS_VERSION_SVN@"
+!if "@GRASS_VERSION_SVN@" == ""
+    !define SVN_REVISION "0"
+!else
+    !define SVN_REVISION "@GRASS_VERSION_SVN@"
+!endif
 !define BINARY_REVISION "1"
 !define BINARY_REVISION "1"
 !define VERSION_NUMBER "@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@"
 !define VERSION_NUMBER "@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@"
 !define GRASS_BASE "GRASS GIS @GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@"
 !define GRASS_BASE "GRASS GIS @GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@"