doc: fix regexp for determining the man page section
authorCédric Duval <cedricduval@free.fr>
Wed, 10 Jun 2009 19:59:44 +0200
changeset 8822 1027da7d2fb9
parent 8821 c66e324d3961
child 8823 d9f4c182aeca
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.
doc/Makefile
--- 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