X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d515e7a3a06ec0f2fcd4798f3e1496040d62e94c..beb2ce1f2dd06501d2bc914d8b19a3ea65c02e8f:/tools/mkversion.pl diff --git a/tools/mkversion.pl b/tools/mkversion.pl index 3edc3605..f726640e 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -15,15 +15,15 @@ $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 @compiletime = gmtime(); +my $clean = $gitversion =~ '-dirty' ? 0 : 1; +my @compiletime = localtime(); my $fullgitinfo = 'iceman'; if ( defined $gitbranch and defined $gitversion ) { - $fullgitinfo = '/'. $gitbranch . '/' . $gitversion; + $fullgitinfo = $fullgitinfo.'/'. $gitbranch . '/' . $gitversion; } else { - $fullgitinfo = '/master/release-build (no_git)'; + $fullgitinfo = $fullgitinfo.'/master/release-build (no_git)'; } $fullgitinfo =~ s/(\s)//g;