wmmisc: Use autoconf defines for version number and bugreport address.

This commit is contained in:
Doug Torrance 2018-07-11 22:12:48 -04:00 committed by Carlos R. Mafra
parent 80e3fdf32a
commit 3782edcfd3
2 changed files with 3 additions and 10 deletions

View file

@ -43,16 +43,13 @@ dockapp_show_help( const char* wm_name )
printf( "the system's fork count and load average.\n\n" );
printf( " -h display this help and exit\n" );
printf( " -v output version information and exit\n\n" );
printf( "Report bugs to <" DOCKAPP_AUTHOR_EMAIL ">.\n" );
printf( "Report bugs to <" PACKAGE_BUGREPORT ">.\n" );
}
void
dockapp_show_version( void )
{
printf( "%s %d.%d\n",
DOCKAPP_NAME,
DOCKAPP_MAJOR_VERSION,
DOCKAPP_MINOR_VERSION );
printf( "%s\n", PACKAGE_STRING);
printf( "Written by %s <%s>\n\n", DOCKAPP_AUTHOR, DOCKAPP_AUTHOR_EMAIL );
printf( "Copyright (C) 2003-2006 %s\n", DOCKAPP_AUTHOR );
printf( "This is free software; see the source for copying conditions. There is NO\n" );
@ -91,7 +88,7 @@ dockapp_crash( int signal_received )
DOCKAPP_NAME );
fprintf( stderr,
"such as gdb, and report the output to <%s>.\n",
DOCKAPP_AUTHOR_EMAIL );
PACKAGE_BUGREPORT );
abort();
}

View file

@ -26,10 +26,6 @@
#define DOCKAPP_NAME "wmmisc"
#define DOCKAPP_MAJOR_VERSION 1
#define DOCKAPP_MINOR_VERSION 1
#define DOCKAPP_VERSION "1.1"
static char wmmisc_mask_bits[64 * 64];
static int wmmisc_mask_width = 64;
static int wmmisc_mask_height = 64;