[hackers] [wmname] applied Martin Kopta's patch, thanks || Anselm R Garbe

From: <git_AT_suckless.org>
Date: Tue, 13 Aug 2013 19:11:24 +0200

commit 1114a8345a83b776d12e7721af45342b7f2f5174
Author: Anselm R Garbe <anselm_AT_garbe.us>
Date: Tue Aug 13 19:11:07 2013 +0200

    applied Martin Kopta's patch, thanks

diff --git a/LICENSE b/LICENSE
index bf73bff..f900baf 100644
--- a/LICENSE
+++ b/LICENSE
_AT_@ -1,6 +1,6 @@
 MIT/X Consortium License
 
-© 2008 Anselm R Garbe <garbeam at gmail dot com>
+© 2008-2013 Anselm R Garbe <garbeam at gmail dot com>
 
 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the "Software"),
diff --git a/Makefile b/Makefile
index fc14296..33e4af0 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -32,7 +32,7 @@ clean:
 dist: clean
         _AT_echo creating dist tarball
         _AT_mkdir -p wmname-${VERSION}
- _AT_cp -R LICENSE Makefile README config.mk ${SRC} wmname-${VERSION}
+ _AT_cp -R LICENSE Makefile README config.mk wmname.1 ${SRC} wmname-${VERSION}
         _AT_tar -cf wmname-${VERSION}.tar wmname-${VERSION}
         _AT_gzip wmname-${VERSION}.tar
         _AT_rm -rf wmname-${VERSION}
_AT_@ -42,6 +42,10 @@ install: all
         _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
         _AT_cp -f wmname ${DESTDIR}${PREFIX}/bin
         _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/wmname
+ _AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
+ _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ _AT_sed "s/VERSION/${VERSION}/g" < wmname.1 > ${DESTDIR}${MANPREFIX}/man1/wmname.1
+ _AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmname.1
 
 uninstall:
         _AT_echo removing executable file from ${DESTDIR}${PREFIX}/bin
diff --git a/config.mk b/config.mk
index ca6d6c4..dae7517 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -1,5 +1,5 @@
 # wmname version
-VERSION = 0.1
+VERSION = 0.2
 
 # Customize below to fit your system
 
diff --git a/wmname.1 b/wmname.1
new file mode 100644
index 0000000..46f9ec4
--- /dev/null
+++ b/wmname.1
_AT_@ -0,0 +1,17 @@
+.TH WMNAME 1 wmname\-VERSION
+.SH NAME
+wmname \- prints/sets the EWMH WM name property.
+.SH SYNOPSIS
+.B wmname
+.IR [name]
+.SH DESCRIPTION
+.B wmname
+Prints/sets the window manager name property of the root window similar to how hostname(1) behaves.
+.B wmname
+wmname is a nice utility to fix problems with JDK versions and other broken programs assuming a reparenting window manager for instance.
+.SH AUTHORS
+Anselm R Garbe <garbeam at gmail dot com>
+.SH LICENSE
+MIT/X Consortium License. See the LICENSE file for the terms of redistribution.
+.SH SEE ALSO
+.BR dwm (1)
diff --git a/wmname.c b/wmname.c
index 7d846f3..b8640b8 100644
--- a/wmname.c
+++ b/wmname.c
_AT_@ -29,7 +29,7 @@ main(int argc, char **argv) {
         if(argc > 2)
                 eprint("usage: wmname [name] [-v]
");
         else if(argc == 2 && !strncmp(argv[1], "-v", 3))
- eprint("wmname-"VERSION", © 2008 Anselm R Garbe
", stdout);
+ eprint("wmname-"VERSION", © 2008-2013 Anselm R Garbe
", stdout);
 
         if(!(dpy = XOpenDisplay(0)))
                 eprint("wmname: cannot open display
");
Received on Tue Aug 13 2013 - 19:11:24 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 13 2013 - 19:12:14 CEST