X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/43d3f76921db4456cb18f6df8d5f1dcf1cb0dc0e..a877bc2f01e6430547787411f805eaedef0d7112:/tools/mkversion.pl diff --git a/tools/mkversion.pl b/tools/mkversion.pl index fe6ee0c7..2755b3b9 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -16,9 +16,15 @@ 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 @compiletime = localtime(); -my $fullgitinfo = 'iceman' . $gitbranch . '/' . $gitversion; +my $fullgitinfo = 'iceman'; + +if ( defined $gitbranch and defined $gitversion ) { + $fullgitinfo = $fullgitinfo.'/'. $gitbranch . '/' . $gitversion; +} else { + $fullgitinfo = $fullgitinfo.'/master/release-build (no_git)'; +} $fullgitinfo =~ s/(\s)//g;