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.
--- 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