X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/43d3f76921db4456cb18f6df8d5f1dcf1cb0dc0e..e108a48ac415ab2b1fc212c63ad1a2e68efd5e4e:/tools/mkversion.pl?ds=sidebyside 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;