Add default version when compiling without Git installed
This commit is contained in:
parent
d8d057bd50
commit
92cdec0552
|
@ -4,6 +4,11 @@
|
||||||
<#@ import namespace="System.Text.RegularExpressions" #>
|
<#@ import namespace="System.Text.RegularExpressions" #>
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
String VERSION;
|
||||||
|
String ASM_VERSION;
|
||||||
|
String ASM_FILE_VERSION;
|
||||||
|
|
||||||
|
try {
|
||||||
// Add msysgit to path, as we cannot asume it is added to the path
|
// Add msysgit to path, as we cannot asume it is added to the path
|
||||||
// Asume it is installed in @"C:\msysgit\bin" for now
|
// Asume it is installed in @"C:\msysgit\bin" for now
|
||||||
string MSysGit=@"C:\msysgit";
|
string MSysGit=@"C:\msysgit";
|
||||||
|
@ -30,9 +35,14 @@
|
||||||
for(int i=1; i <= 4; i++)
|
for(int i=1; i <= 4; i++)
|
||||||
Int32.TryParse(m.Groups[i].Value, out version[i-1]);
|
Int32.TryParse(m.Groups[i].Value, out version[i-1]);
|
||||||
|
|
||||||
String VERSION=DescribeOutput;
|
VERSION=DescribeOutput;
|
||||||
String ASM_VERSION=String.Format("{0}.{1}",version[0],version[1]);
|
ASM_VERSION=String.Format("{0}.{1}",version[0],version[1]);
|
||||||
String ASM_FILE_VERSION=String.Format("{0}.{1}.{2}.{3}",version[0],version[1],version[2],version[3]);
|
ASM_FILE_VERSION=String.Format("{0}.{1}.{2}.{3}",version[0],version[1],version[2],version[3]);
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
// Current defaults
|
||||||
|
VERSION = ASM_VERSION = ASM_FILE_VERSION = "0.8.3";
|
||||||
|
}
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue