changeset 8822:1027da7d2fb9

doc: fix regexp for determining the man page section Preceding a .* pattern with an other dot serves little purpose, better anchor the regexp to the start of the file name.
author Cédric Duval <cedricduval@free.fr>
date Wed, 10 Jun 2009 19:59:44 +0200
parents c66e324d3961
children d9f4c182aeca
files doc/Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/Makefile	Mon Jun 15 20:35:19 2009 -0400
+++ b/doc/Makefile	Wed Jun 10 19:59:44 2009 +0200
@@ -39,7 +39,7 @@
 
 install: man
 	for i in $(MAN) ; do \
-	  subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
+	  subdir=`echo $$i | sed -n 's/^.*\.\([0-9]\)$$/man\1/p'` ; \
 	  mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \
 	  $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \
 	done