mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-24 15:56:25 -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 ();
|
print_options ();
|
||||||
printf ( "\n" );
|
printf ( "\n" );
|
||||||
printf ( "For more information see: man rofi\n" );
|
printf ( "For more information see: man rofi\n" );
|
||||||
printf ( "Version: "VERSION "\n" );
|
|
||||||
#ifdef GIT_VERSION
|
#ifdef GIT_VERSION
|
||||||
printf ( "Git: "GIT_VERSION "\n" );
|
printf ( "Version: "GIT_VERSION "\n" );
|
||||||
|
#else
|
||||||
|
printf ( "Version: "VERSION "\n" );
|
||||||
#endif
|
#endif
|
||||||
printf ( "Bugreports: "PACKAGE_BUGREPORT "\n" );
|
printf ( "Bugreports: "PACKAGE_BUGREPORT "\n" );
|
||||||
}
|
}
|
||||||
|
@ -608,9 +609,10 @@ int main ( int argc, char *argv[] )
|
||||||
|
|
||||||
// Version
|
// Version
|
||||||
if ( find_arg ( "-v" ) >= 0 || find_arg ( "-version" ) >= 0 ) {
|
if ( find_arg ( "-v" ) >= 0 || find_arg ( "-version" ) >= 0 ) {
|
||||||
fprintf ( stdout, "Version: "VERSION "\n" );
|
|
||||||
#ifdef GIT_VERSION
|
#ifdef GIT_VERSION
|
||||||
fprintf ( stdout, "Git: "GIT_VERSION "\n" );
|
fprintf ( stdout, "Version: "GIT_VERSION "\n" );
|
||||||
|
#else
|
||||||
|
fprintf ( stdout, "Version: "VERSION "\n" );
|
||||||
#endif
|
#endif
|
||||||
exit ( EXIT_SUCCESS );
|
exit ( EXIT_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue