2 * version.c - version message utility functions
4 * Copyright © 2008 Julien Danjou <julien@danjou.info>
5 * Copyright © 2008 Hans Ulrich Niedermann <hun@n-dimensional.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "common/version.h"
27 #include "awesome-version-internal.h"
29 /** \brief Print version message and quit program.
30 * \param executable program name
35 printf("awesome " AWESOME_VERSION
36 " (" AWESOME_RELEASE
")\n"
38 #if defined(__DATE__) && defined(__TIME__)
39 printf(" " __DATE__
" " __TIME__
);
41 printf(" for %s", AWESOME_COMPILE_MACHINE
);
42 #if defined(__GNUC__) \
43 && defined(__GNUC_MINOR__) \
44 && defined(__GNUC_PATCHLEVEL__)
45 printf(" by gcc version %d.%d.%d",
46 __GNUC__
, __GNUC_MINOR__
, __GNUC_PATCHLEVEL__
);
48 printf(" (%s@%s)\n", AWESOME_COMPILE_BY
, AWESOME_COMPILE_HOSTNAME
);
49 printf(" • D-Bus support: ");
58 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80