Improve gitrev handling.

This commit is contained in:
Markus F.X.J. Oberhumer
2016-09-26 10:35:29 +02:00
parent bd54499537
commit aee52d3880
4 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -384,7 +384,11 @@ void show_version(int x)
UNUSED(x);
UNUSED(v);
fprintf(fp, "upx %s\n", UPX_VERSION_STRING);
fprintf(fp, "upx %s\n", UPX_VERSION_STRING
#if defined(UPX_VERSION_GITREV)
"-" UPX_VERSION_GITREV
#endif
);
#if (WITH_NRV)
v = upx_nrv_version_string();
if (v != NULL && v[0])