From 50011f1970c03de8b6f468133f91fdc9c00d2d6d Mon Sep 17 00:00:00 2001 From: W8M2Hg9lLmWqXSGC Date: Sun, 29 Jan 2012 00:51:08 +0000 Subject: [PATCH] Added regex to remove spaces and new lines from version.c when compiling under Windows. --- tools/mkversion.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mkversion.pl b/tools/mkversion.pl index 03ef27d28..3cd469d19 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -57,6 +57,7 @@ if(open(SVNINFO, "svn info $main_dir|")) { $compiletime[4] += 1; $compiletime[5] += 1900; my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compiletime); +$svnversion=~ s/(^\s+|\s+$)//g; print <