]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Added regex to remove spaces and new lines from version.c when compiling under Windows.
authorW8M2Hg9lLmWqXSGC <W8M2Hg9lLmWqXSGC@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 29 Jan 2012 00:51:08 +0000 (00:51 +0000)
committerW8M2Hg9lLmWqXSGC <W8M2Hg9lLmWqXSGC@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 29 Jan 2012 00:51:08 +0000 (00:51 +0000)
tools/mkversion.pl

index 03ef27d286e24c55791bc46a566551cbe23d599b..3cd469d19c61c03421e0c44ebe5a596afba869ae 100644 (file)
@@ -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 <<EOF
 #include "proxmark3.h"
Impressum, Datenschutz