Feature - version command

- Added FreeBSD as a recognized operating system.
This commit is contained in:
Paul Beckingham 2009-12-20 10:51:03 -05:00
parent 2a8acaf351
commit b8377b7e5c
2 changed files with 7 additions and 1 deletions

View file

@ -40,6 +40,9 @@ elif test "$OS" = "openb"; then
elif test "$OS" = "haiku"; then
AC_MSG_NOTICE([OS Haiku detected])
AC_DEFINE([HAIKU], [], [Compiling on Haiku])
elif test "$OS" = "freeb"; then
AC_MSG_NOTICE([OS FreeBSD detected])
AC_DEFINE([FREEBSD], [], [Compiling on FreeBSD])
else
AC_MSG_NOTICE([OS Linux detected])
AC_DEFINE([LINUX], [], [Compiling on Linux])

View file

@ -506,10 +506,11 @@ int handleVersion (std::string &outs)
<< "openbsd"
#elif defined (HAIKU)
<< "haiku"
#elif defined (FREEBSD)
<< "freebsd"
#else
<< "linux"
#endif
// TODO Include: FreeBSD?
#ifdef HAVE_LIBNCURSES
<< "-ncurses"
@ -590,6 +591,8 @@ int handleVersion (std::string &outs)
out << context.config.checkForDeprecatedColor ();
out << context.config.checkForDuplicates ();
// TODO Check for referenced but missing theme files.
// TODO Check for referenced but missing string files.
// Verify installation. This is mentioned in the documentation as the way to
// ensure everything is properly installed.