[hackers] [wmii] Calculate VERSION from the hg reversion number.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Feb 19 04:02:14 2007

changeset: 1906:fd99ef0f8c85
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 18 21:58:22 2007 -0500
summary: Calculate VERSION from the hg reversion number.

diff -r 9ce709b7d5c2 -r fd99ef0f8c85 config.mk
--- a/config.mk Sun Feb 18 21:42:10 2007 -0500
+++ b/config.mk Sun Feb 18 21:58:22 2007 -0500
@@ -1,5 +1,5 @@
 # wmii version
-VERSION = 3.6-rc2
+VERSION != hg tip | awk -F '[: ]+' '/^changeset:/ { print "hg" $$2 }'
 CONFVERSION = 3.5
 
 # Customize below to fit your system
diff -r 9ce709b7d5c2 -r fd99ef0f8c85 main.c
--- a/main.c Sun Feb 18 21:42:10 2007 -0500
+++ b/main.c Sun Feb 18 21:58:22 2007 -0500
@@ -385,8 +385,8 @@ main(int argc, char *argv[]) {
                 init_screen(s);
                 pmap = XCreatePixmap(blz.dpy, blz.root, s->rect.width, s->rect.height,
                                 DefaultDepth(blz.dpy, blz.screen));
- wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask
- | FocusChangeMask;
+ wa.event_mask = SubstructureRedirectMask | EnterWindowMask
+ | LeaveWindowMask | FocusChangeMask;
                 wa.cursor = cursor[CurNormal];
                 XChangeWindowAttributes(blz.dpy, blz.root, CWEventMask | CWCursor, &wa);
                 wa.override_redirect = 1;
Received on Mon Feb 19 2007 - 04:02:14 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:26 UTC