applied Sanders man page/Makefile patch
authorarg@10ksloc.org <unknown>
Mon, 7 Aug 2006 09:57:05 +0000 (11:57 +0200)
committerarg@10ksloc.org <unknown>
Mon, 7 Aug 2006 09:57:05 +0000 (11:57 +0200)
Makefile
dwm.1

index d3fc989..aebd21b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ install: all
        @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
        @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
        @mkdir -p ${DESTDIR}${MANPREFIX}/man1
-       @cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1
+       @sed 's/VERSION/${VERSION}/g' < dwm.1 ${DESTDIR}${MANPREFIX}/man1/dwm.1
        @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
 
 uninstall:
diff --git a/dwm.1 b/dwm.1
index 191ffc0..365a0d5 100644 (file)
--- a/dwm.1
+++ b/dwm.1
@@ -1,4 +1,4 @@
-.TH DWM 1 dwm-0.7
+.TH DWM 1 dwm-VERSION
 .SH NAME
 dwm \- dynamic window manager
 .SH SYNOPSIS