mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature - version command
- Rearranged output of the version command. - Added build information (OS) and packages (ncurses ...).
This commit is contained in:
parent
2ec5a315cb
commit
2a8acaf351
2 changed files with 51 additions and 12 deletions
18
configure.ac
18
configure.ac
|
@ -24,13 +24,25 @@ else
|
|||
fi
|
||||
|
||||
# Check for OS.
|
||||
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
||||
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'|cut -c 1-5`
|
||||
if test "$OS" = "sunos"; then
|
||||
AC_MSG_NOTICE([OS Solaris detected])
|
||||
AC_DEFINE([SOLARIS], [], [Compiling on Solaris])
|
||||
elif test "$OS" = "darwi"; then
|
||||
AC_MSG_NOTICE([OS Darwin detected])
|
||||
AC_DEFINE([DARWIN], [], [Compiling on Darwin])
|
||||
elif test "$OS" = "cygwi"; then
|
||||
AC_MSG_NOTICE([OS Cygwin detected])
|
||||
AC_DEFINE([CYGWIN], [], [Compiling on Cygwin])
|
||||
elif test "$OS" = "openb"; then
|
||||
AC_MSG_NOTICE([OS OpenBSD detected])
|
||||
AC_DEFINE([OPENBSD], [], [Compiling on OpenBSD])
|
||||
elif test "$OS" = "haiku"; then
|
||||
AC_MSG_NOTICE([OS Haiku detected])
|
||||
AC_DEFINE([HAIKU], [], [Compiling on Haiku])
|
||||
else
|
||||
AC_MSG_NOTICE([OS Non-Solaris detected])
|
||||
AC_DEFINE([LINUX], [], [Compiling on Non-Solaris])
|
||||
AC_MSG_NOTICE([OS Linux detected])
|
||||
AC_DEFINE([LINUX], [], [Compiling on Linux])
|
||||
fi
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue