mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 21:03:23 -07:00
Updated nameing (svn -> git) & fixed whitespaces.
This commit is contained in:
parent
23ca86b833
commit
9c6837165b
3 changed files with 5 additions and 5 deletions
|
@ -239,7 +239,7 @@ void FormatVersionInformation(char *dst, int len, const char *prefix, void *vers
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncat(dst, v->svnversion, len);
|
strncat(dst, v->gitversion, len);
|
||||||
if(v->clean == 0) {
|
if(v->clean == 0) {
|
||||||
strncat(dst, "-unclean", len);
|
strncat(dst, "-unclean", len);
|
||||||
} else if(v->clean == 2) {
|
} else if(v->clean == 2) {
|
||||||
|
|
|
@ -89,7 +89,7 @@ struct version_information {
|
||||||
char versionversion; /* Must be 1 */
|
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 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 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 */
|
char buildtime[30]; /* string with the build time */
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# --- Martin Holst Swende <martin@swende.se>
|
# --- 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{'LC_ALL'} = "C";
|
||||||
$ENV{'LANG'} = "C";
|
$ENV{'LANG'} = "C";
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ my $gitbranch = `git rev-parse --abbrev-ref HEAD`;
|
||||||
my $clean = 2;
|
my $clean = 2;
|
||||||
my @compiletime = gmtime();
|
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
|
# Crop so it fits within 50 characters
|
||||||
$fullgitinfo =~ s/.{50}\K.*//s;
|
$fullgitinfo =~ s/.{50}\K.*//s;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue