From: W8M2Hg9lLmWqXSGC Date: Sun, 29 Jan 2012 00:51:08 +0000 (+0000) Subject: Added regex to remove spaces and new lines from version.c when compiling under Windows. X-Git-Tag: v1.0.0~229 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/50011f1970c03de8b6f468133f91fdc9c00d2d6d Added regex to remove spaces and new lines from version.c when compiling under Windows. --- diff --git a/tools/mkversion.pl b/tools/mkversion.pl index 03ef27d2..3cd469d1 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 <