mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 15:26:13 +08:00
Updated nameing (svn -> git) & fixed whitespaces.
This commit is contained in:
parent
23ca86b833
commit
9c6837165b
|
@ -239,7 +239,7 @@ void FormatVersionInformation(char *dst, int len, const char *prefix, void *vers
|
|||
return;
|
||||
}
|
||||
|
||||
strncat(dst, v->svnversion, len);
|
||||
strncat(dst, v->gitversion, len);
|
||||
if(v->clean == 0) {
|
||||
strncat(dst, "-unclean", len);
|
||||
} else if(v->clean == 2) {
|
||||
|
|
|
@ -89,7 +89,7 @@ struct version_information {
|
|||
char versionversion; /* Must be 1 */
|
||||
char present; /* 1 if the version information could be created at compile time, otherwise 0 and the remaining fields (except for magic) are empty */
|
||||
char clean; /* 1: Tree was clean, no local changes. 0: Tree was unclean. 2: Couldn't be determined */
|
||||
char svnversion[50]; /* String with the SVN revision */
|
||||
char gitversion[50]; /* String with the git revision */
|
||||
char buildtime[30]; /* string with the build time */
|
||||
} __attribute__((packed));
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# --- Martin Holst Swende <martin@swende.se>
|
||||
|
||||
|
||||
# Clear environment locale so that svn will not use localized strings
|
||||
# Clear environment locale so that git will not use localized strings
|
||||
$ENV{'LC_ALL'} = "C";
|
||||
$ENV{'LANG'} = "C";
|
||||
|
||||
|
@ -16,9 +16,9 @@ my $gitbranch = `git rev-parse --abbrev-ref HEAD`;
|
|||
my $clean = 2;
|
||||
my @compiletime = gmtime();
|
||||
|
||||
my $fullgitinfo= $gitbranch . '/'.$gitversion;
|
||||
my $fullgitinfo = $gitbranch . '/' . $gitversion;
|
||||
|
||||
$fullgitinfo=~ s/(\s)//g;
|
||||
$fullgitinfo =~ s/(\s)//g;
|
||||
|
||||
# Crop so it fits within 50 characters
|
||||
$fullgitinfo =~ s/.{50}\K.*//s;
|
||||
|
|
Loading…
Reference in a new issue