naughty: icon_size added to config and notify()
[awesome.git] / common / version.c
blobf6474c2e53fefdd8c08c34d20a0dece11f11c19e
1 /*
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.
22 #include <stdlib.h>
23 #include <stdio.h>
25 #include "config.h"
26 #include "common/version.h"
27 #include "awesome-version-internal.h"
29 /** \brief Print version message and quit program.
30 * \param executable program name
32 void
33 eprint_version(const char *const executable)
35 printf("%s (awesome) " AWESOME_VERSION
36 " (" AWESOME_RELEASE ")\n"
37 " • Build:",
38 executable);
39 #if defined(__DATE__) && defined(__TIME__)
40 printf(" " __DATE__ " " __TIME__);
41 #endif
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__);
48 #endif
49 printf(" (%s@%s)\n", AWESOME_COMPILE_BY, AWESOME_COMPILE_HOSTNAME);
50 printf(" • D-Bus support: ");
51 #ifdef WITH_DBUS
52 printf("✔\n");
53 #else
54 printf("✘\n");
55 #endif
56 exit(EXIT_SUCCESS);
59 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80