[hackers] [PATCH] Install LICENSE and BUGS

From: David Demelier <markand_AT_malikania.fr>
Date: Wed, 9 May 2018 21:59:30 +0200

Also merge dwm.1 BUGS sections into the dedicated BUGS file and
reference it there to avoid effort duplication.
---
 BUGS      | 18 ++++++++++++++++++
 Makefile  |  8 +++++++-
 config.mk |  1 +
 dwm.1     | 22 +---------------------
 4 files changed, 27 insertions(+), 22 deletions(-)
diff --git a/BUGS b/BUGS
index 6c9574a..236013f 100644
--- a/BUGS
+++ b/BUGS
_AT_@ -1,3 +1,21 @@
+Java applications which use the XToolkit/XAWT backend may draw grey windows
+only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and
+early JDK 1.6 versions, because it assumes a reparenting window manager.
+Possible workarounds are using JDK 1.4 (which doesn't contain the XToolkit/XAWT
+backend) or setting the environment variable AWT_TOOLKIT=MToolkit (to use the
+older Motif backend instead) or running xprop -root -f _NET_WM_NAME 32a -set
+_NET_WM_NAME LG3D or wmname LG3D (to pretend that a non-reparenting window
+manager is running that the XToolkit/XAWT backend can recognize) or when using
+OpenJDK setting the environment variable _JAVA_AWT_WM_NONREPARENTING=1 .
+
+---
+
+GTK 2.10.9+ versions contain a broken Save\-As file dialog implementation,
+which requests to reconfigure its window size in an endless loop. However, its
+window is still respondable during this state, so you can simply ignore the
+flicker until a new GTK version appears, which will fix this bug, approximately
+GTK 2.10.12+ versions.
+
 ---
 
 18:17 < Biolunar> when i change my resolution in dwm (to a smaller one) and then back to the native, the top bar is not repainted. that's since 5.7.2, in 5.6 it worked fine
diff --git a/Makefile b/Makefile
index 1ea40b7..fe187b7 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -48,7 +48,13 @@ install: all
 	_AT_chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
 	_AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
 	_AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
-	_AT_sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
+	_AT_cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1/dwm.1
+	_AT_sed -i "s|VERSION|${VERSION}|g" ${DESTDIR}${MANPREFIX}/man1/dwm.1
+	_AT_sed -i "s|DOCPREFIX|${DESTDIR}${DOCPREFIX}|g" ${DESTDIR}${MANPREFIX}/man1/dwm.1
+	_AT_echo installing documentation to ${DESTDIR}${DOCPREFIX}
+	_AT_mkdir -p ${DESTDIR}${DOCPREFIX}
+	_AT_cp -f LICENSE ${DESTDIR}${DOCPREFIX}
+	_AT_cp -f BUGS ${DESTDIR}${DOCPREFIX}
 	_AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
 
 uninstall:
diff --git a/config.mk b/config.mk
index 80dc936..bb5a13b 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -5,6 +5,7 @@ VERSION = 6.1
 
 # paths
 PREFIX = /usr/local
+DOCPREFIX = ${PREFIX}/share/doc/dwm
 MANPREFIX = ${PREFIX}/share/man
 
 X11INC = /usr/X11R6/include
diff --git a/dwm.1 b/dwm.1
index e3b2c38..455c41d 100644
--- a/dwm.1
+++ b/dwm.1
_AT_@ -159,24 +159,4 @@ code. This keeps it fast, secure and simple.
 .BR dmenu (1),
 .BR st (1)
 .SH BUGS
-Java applications which use the XToolkit/XAWT backend may draw grey windows
-only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
-JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
-are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
-environment variable
-.BR AWT_TOOLKIT=MToolkit
-(to use the older Motif backend instead) or running
-.B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
-or
-.B wmname LG3D
-(to pretend that a non-reparenting window manager is running that the
-XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
-.BR _JAVA_AWT_WM_NONREPARENTING=1 .
-.P
-GTK 2.10.9+ versions contain a broken
-.BR Save\-As
-file dialog implementation,
-which requests to reconfigure its window size in an endless loop. However, its
-window is still respondable during this state, so you can simply ignore the flicker
-until a new GTK version appears, which will fix this bug, approximately
-GTK 2.10.12+ versions.
+See DOCPREFIX/BUGS.
-- 
2.17.0
Received on Wed May 09 2018 - 21:59:30 CEST

This archive was generated by hypermail 2.3.0 : Wed May 09 2018 - 22:00:27 CEST