version: enhance printing
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
fad964dd3c
commit
63b0457fc4
|
@ -38,7 +38,7 @@ eprint_version(const char *const executable)
|
||||||
{
|
{
|
||||||
printf("%s (awesome) " AWESOME_VERSION
|
printf("%s (awesome) " AWESOME_VERSION
|
||||||
" (" AWESOME_RELEASE ")\n"
|
" (" AWESOME_RELEASE ")\n"
|
||||||
"built",
|
" • Build:",
|
||||||
executable);
|
executable);
|
||||||
#if defined(__DATE__) && defined(__TIME__)
|
#if defined(__DATE__) && defined(__TIME__)
|
||||||
printf(" " __DATE__ " " __TIME__);
|
printf(" " __DATE__ " " __TIME__);
|
||||||
|
@ -51,17 +51,17 @@ eprint_version(const char *const executable)
|
||||||
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
||||||
#endif
|
#endif
|
||||||
printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
|
printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
|
||||||
printf("* Image drawing engine: ");
|
printf(" • Image drawing engine: ");
|
||||||
#ifdef WITH_IMLIB2
|
#ifdef WITH_IMLIB2
|
||||||
printf("Imlib2\n");
|
printf("Imlib2\n");
|
||||||
#else
|
#else
|
||||||
printf("GdkPixBuf " GDK_PIXBUF_VERSION "\n");
|
printf("GdkPixBuf " GDK_PIXBUF_VERSION "\n");
|
||||||
#endif
|
#endif
|
||||||
printf("* DBus support: ");
|
printf(" • DBus support: ");
|
||||||
#ifdef WITH_DBUS
|
#ifdef WITH_DBUS
|
||||||
printf("enabled\n");
|
printf("✔\n");
|
||||||
#else
|
#else
|
||||||
printf("disabled\n");
|
printf("✘\n");
|
||||||
#endif
|
#endif
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue