doc/Makefile
changeset 8822 1027da7d2fb9
parent 8311 e0eb03bfa5af
child 9107 309c1d762e8e
--- 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