add some useless infos in version :-)
This commit is contained in:
parent
03bb2708b6
commit
00bf08178c
|
@ -228,7 +228,14 @@ main(int argc, char *argv[])
|
|||
args_ok = 0;
|
||||
if(!a_strcmp("-v", argv[1]) || !a_strcmp("--version", argv[1]))
|
||||
{
|
||||
printf("awesome " VERSION " (" RELEASE ")\n");
|
||||
printf("awesome version " VERSION " (" RELEASE ")\ncompiled on "__DATE__" "__TIME__);
|
||||
#if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__)
|
||||
printf(" by gcc version %d.%d.%d", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
||||
#endif
|
||||
#if defined(AWESOME_COMPILE_HOST) && defined(AWESOME_COMPILE_BY)
|
||||
printf(" (" AWESOME_COMPILE_BY "@" AWESOME_COMPILE_HOST ")");
|
||||
#endif
|
||||
printf("\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
else if(!a_strcmp("-h", argv[1]) || !a_strcmp("--help", argv[1]))
|
||||
|
|
|
@ -25,6 +25,8 @@ subdir-objects
|
|||
])
|
||||
|
||||
AC_DEFINE_UNQUOTED([RELEASE], ["Productivity Breaker"])
|
||||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_HOST], ["`hostname`"])
|
||||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_BY], ["`whoami`"])
|
||||
|
||||
AC_MSG_CHECKING([package version according to autoconf])
|
||||
AC_MSG_RESULT([${PACKAGE_VERSION}])
|
||||
|
|
Loading…
Reference in New Issue