# HG changeset patch # User Cédric Duval # Date 2009-06-10 17:59:44 # Node ID 1027da7d2fb9c9017c69f613e7f2fd20ab800943 # Parent c66e324d396131094030ac77fefb0721bf5e3929 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. diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -39,7 +39,7 @@ MANIFEST: man html 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