version: remove product name
We only ship one binary now. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c95e73ee61
commit
09b166d71e
|
@ -382,7 +382,7 @@ main(int argc, char **argv)
|
||||||
switch(opt)
|
switch(opt)
|
||||||
{
|
{
|
||||||
case 'v':
|
case 'v':
|
||||||
eprint_version("awesome");
|
eprint_version();
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
exit_help(EXIT_SUCCESS);
|
exit_help(EXIT_SUCCESS);
|
||||||
|
|
|
@ -30,12 +30,11 @@
|
||||||
* \param executable program name
|
* \param executable program name
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
eprint_version(const char *const executable)
|
eprint_version(void)
|
||||||
{
|
{
|
||||||
printf("%s (awesome) " AWESOME_VERSION
|
printf("awesome " AWESOME_VERSION
|
||||||
" (" AWESOME_RELEASE ")\n"
|
" (" AWESOME_RELEASE ")\n"
|
||||||
" • Build:",
|
" • Build:");
|
||||||
executable);
|
|
||||||
#if defined(__DATE__) && defined(__TIME__)
|
#if defined(__DATE__) && defined(__TIME__)
|
||||||
printf(" " __DATE__ " " __TIME__);
|
printf(" " __DATE__ " " __TIME__);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,6 +22,6 @@
|
||||||
#ifndef AWESOME_COMMON_VERSION_H
|
#ifndef AWESOME_COMMON_VERSION_H
|
||||||
#define AWESOME_COMMON_VERSION_H
|
#define AWESOME_COMMON_VERSION_H
|
||||||
|
|
||||||
void eprint_version(const char *const executable) __attribute__ ((noreturn));
|
void eprint_version(void) __attribute__ ((noreturn));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue