diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-11-08 11:28:40 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-11-21 17:18:12 +0000 |
commit | c593ba4502b83ac021ee930b491e15994f5eece5 (patch) | |
tree | 09bef7ae2513c0dd2a5b1155b75f24ae25ff77d8 | |
parent | 2af85f6d21d175c2a16411540d4e44851c803fbe (diff) |
don't hard-code package version in C source.
While there, get rid of RCS Id.
Reviewed-by: Remi Cardona <remi@gentoo.org>
-rw-r--r-- | xcompmgr.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,4 @@ /* - * $Id$ - * * Copyright © 2003 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its @@ -27,6 +25,9 @@ says above. Not that I can really do anything about it */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdlib.h> #include <stdio.h> @@ -1854,7 +1855,7 @@ ev_window (XEvent *ev) static void usage (char *program) { - fprintf (stderr, "%s v1.1.4\n", program); + fprintf (stderr, "%s v%s\n", program, PACKAGE_VERSION); fprintf (stderr, "usage: %s [options]\n", program); fprintf (stderr, "Options\n"); fprintf (stderr, " -d display\n Specifies which display should be managed.\n"); |