summary refs log blame commit diff stats
path: root/version.include.tt
blob: ab77a6d958df182dd1148fe3cd37a2059eeab387 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                                 
<#@
	template debug="false" hostspecific="false" language="C#" #><#@
	assembly name="System.Core" #><#@
	import namespace="System.IO" #><#@
	import namespace="System.Linq" #><#@
	import namespace="System.Text.RegularExpressions" #><#
	var versionParts = File.ReadLines(Path.Combine(System.Environment.GetEnvironmentVariable("SOLUTIONDIR"), "configure.ac"))
		.Select(line => Regex.Match(line, @"^AC_INIT\(\[HexChat\],\[([^]]+)\]\)$"))
		.First(match => match.Success)
		.Groups[1].Value
		.Split('.');
#>