]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: a different version string when compiling on systems without git or the release...
authoriceman1001 <iceman@iuse.se>
Thu, 1 Sep 2016 14:11:31 +0000 (16:11 +0200)
committericeman1001 <iceman@iuse.se>
Thu, 1 Sep 2016 14:11:31 +0000 (16:11 +0200)
tools/mkversion.pl

index fe6ee0c70f51dc0245815217cfce83acac5d340a..3edc360594573e1da6b38886fe160a67c2bbda1e 100644 (file)
@@ -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;
 
Impressum, Datenschutz