]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: got insperation from https://github.com/menshiyun/proxmark3/commits/local ...
authoriceman1001 <iceman@iuse.se>
Wed, 7 Dec 2016 16:06:15 +0000 (17:06 +0100)
committericeman1001 <iceman@iuse.se>
Wed, 7 Dec 2016 16:06:15 +0000 (17:06 +0100)
tools/mkversion.pl

index 2755b3b99fd1eac67026e2ec0b3ce13616ad15e7..f726640e946b0aec7734ec5a6d66900a2507b4be 100644 (file)
@@ -15,7 +15,7 @@ $ENV{'LANG'} = "C";
 my $githistory = `git fetch --all`;
 my $gitversion = `git describe --dirty`;
 my $gitbranch = `git rev-parse --abbrev-ref HEAD`;
-my $clean = 2;
+my $clean = $gitversion =~ '-dirty' ? 0 : 1;
 my @compiletime = localtime();
 
 my $fullgitinfo = 'iceman';
Impressum, Datenschutz