X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3ac59c7fed24cc69e2c9f626e5e4392769779e13..e1deabc0eb11451828e2e8dd18c0d723b3a7eff8:/tools/mkversion.pl diff --git a/tools/mkversion.pl b/tools/mkversion.pl index e12dd447..3edc3605 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -5,18 +5,26 @@ # -- Henryk Plötz 2009-09-28 # Modified april 2014 because of the move to github. # --- Martin Holst Swende - +# Modified january 2016 to work with Travis-CI +# --- iceman # Clear environment locale so that git will not use localized strings $ENV{'LC_ALL'} = "C"; $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 $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;