From: iceman1001 <iceman@iuse.se>
Date: Wed, 7 Dec 2016 16:06:15 +0000 (+0100)
Subject: CHG:  got insperation from https://github.com/menshiyun/proxmark3/commits/local ... 
X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/dbbc82968c0565f2e84cc6a0a25a261da8b8deb3?ds=inline

CHG:  got insperation from https://github.com/menshiyun/proxmark3/commits/local    and the clean variable.
---

diff --git a/tools/mkversion.pl b/tools/mkversion.pl
index 2755b3b9..f726640e 100644
--- a/tools/mkversion.pl
+++ b/tools/mkversion.pl
@@ -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';