[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix in emacs21 & xemacs21 manuals

Hi. I think it is annoying to have $VERSION in these mans.
This patch adds a substition to replace $VERSION in the manuals
to the real version number. A lot of other port have this issue.
They have $SYSCONFDIR, $VERSION etc. but an end-user does not 
know what is $SYSCONFDIR or the others. I think it should nice
to implement an automatic substition for these in the infrastructure.
What do you this about it? Thanks for the comments and please don't

Robert Nagy <thuglife_(_at_)_bsd_(_dot_)_hu>
? patch-editors_emacs21_Makefile
Index: Makefile
RCS file: /cvs/ports/editors/emacs21/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	2004/02/04 07:39:18	1.21
+++ Makefile	2004/03/09 22:43:52
@@ -65,4 +65,8 @@
 .  endif
+	perl -pi -e 's:\$$VERSION:${VERSION}:g' \
+		${PREFIX}/man/man1/emacs.1
 .include <bsd.port.mk>
? patch-editors_xemacs21_Makefile
Index: Makefile
RCS file: /cvs/ports/editors/xemacs21/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	2004/03/03 09:58:21	1.22
+++ Makefile	2004/03/09 22:44:43
@@ -188,5 +188,7 @@
 .if !defined(LOCKDIR)
 	@rm -rf ${PREFIX}/lib/xemacs
+	perl -pi -e 's:\$$VERSION:${VERSION}:g' \
+		${PREFIX}/man/man1/xemacs.1
 .include <bsd.port.mk>

Visit your host, monkey.org