return;
}
- strncat(dst, v->svnversion, len);
+ strncat(dst, v->gitversion, len);
if(v->clean == 0) {
strncat(dst, "-unclean", len);
} else if(v->clean == 2) {
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));
# --- 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";
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;