[xcompmgr] don't hard-code package version in C source.
Matthieu Herrb
matthieu at laas.fr
Sun Nov 8 02:39:47 PST 2009
ok?
From: Matthieu Herrb <matthieu.herrb at laas.fr>
Date: Sun, 8 Nov 2009 11:28:40 +0100
Subject: [PATCH] don't hard-code package version in C source.
While there, get rid of RCS Id.
---
xcompmgr.c | 7 ++++---
1 files 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 <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");
--
1.6.5
--
Matthieu Herrb
More information about the xorg-devel
mailing list