X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d515e7a3a06ec0f2fcd4798f3e1496040d62e94c..0de81725edf1be78294bc54600fb7c295c1fd68d:/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;