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