X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/43d3f76921db4456cb18f6df8d5f1dcf1cb0dc0e..7d0efb37d87a2d87d675827b2fa5018677226c4f:/tools/mkversion.pl diff --git a/tools/mkversion.pl b/tools/mkversion.pl index fe6ee0c7..3edc3605 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -18,7 +18,13 @@ my $gitbranch = `git rev-parse --abbrev-ref HEAD`; my $clean = 2; my @compiletime = gmtime(); -my $fullgitinfo = 'iceman' . $gitbranch . '/' . $gitversion; +my $fullgitinfo = 'iceman'; + +if ( defined $gitbranch and defined $gitversion ) { + $fullgitinfo = '/'. $gitbranch . '/' . $gitversion; +} else { + $fullgitinfo = '/master/release-build (no_git)'; +} $fullgitinfo =~ s/(\s)//g;