mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
rofi: Only display GIT_VERSION if available
It now contains the latest tag, so we have all the relevant information. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
5f1fcf5e77
commit
29f6823cf9
1 changed files with 6 additions and 4 deletions
|
@ -302,9 +302,10 @@ static void help ( G_GNUC_UNUSED int argc, char **argv )
|
|||
print_options ();
|
||||
printf ( "\n" );
|
||||
printf ( "For more information see: man rofi\n" );
|
||||
printf ( "Version: "VERSION "\n" );
|
||||
#ifdef GIT_VERSION
|
||||
printf ( "Git: "GIT_VERSION "\n" );
|
||||
printf ( "Version: "GIT_VERSION "\n" );
|
||||
#else
|
||||
printf ( "Version: "VERSION "\n" );
|
||||
#endif
|
||||
printf ( "Bugreports: "PACKAGE_BUGREPORT "\n" );
|
||||
}
|
||||
|
@ -608,9 +609,10 @@ int main ( int argc, char *argv[] )
|
|||
|
||||
// Version
|
||||
if ( find_arg ( "-v" ) >= 0 || find_arg ( "-version" ) >= 0 ) {
|
||||
fprintf ( stdout, "Version: "VERSION "\n" );
|
||||
#ifdef GIT_VERSION
|
||||
fprintf ( stdout, "Git: "GIT_VERSION "\n" );
|
||||
fprintf ( stdout, "Version: "GIT_VERSION "\n" );
|
||||
#else
|
||||
fprintf ( stdout, "Version: "VERSION "\n" );
|
||||
#endif
|
||||
exit ( EXIT_SUCCESS );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue