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
33 eprint_version(const char *const executable
)
35 printf("%s (awesome) " AWESOME_VERSION
36 " (" AWESOME_RELEASE
")\n"
39 #if defined(__DATE__) && defined(__TIME__)
40 printf(" " __DATE__
" " __TIME__
);
42 printf(" for %s", AWESOME_COMPILE_MACHINE
);
43 #if defined(__GNUC__) \
44 && defined(__GNUC_MINOR__) \
45 && defined(__GNUC_PATCHLEVEL__)
46 printf(" by gcc version %d.%d.%d",
47 __GNUC__
, __GNUC_MINOR__
, __GNUC_PATCHLEVEL__
);
49 printf(" (%s@%s)\n", AWESOME_COMPILE_BY
, AWESOME_COMPILE_HOSTNAME
);
50 printf(" • D-Bus support: ");
59 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80