From c593ba4502b83ac021ee930b491e15994f5eece5 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 8 Nov 2009 11:28:40 +0100 Subject: don't hard-code package version in C source. While there, get rid of RCS Id. Reviewed-by: Remi Cardona --- xcompmgr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index 9d4072c..3a01cce 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -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 #include @@ -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"); -- cgit v1.2.3-70-g09d2