Revision 5ce58234 Makefile.am

b/Makefile.am
929 929
	man/htools.1 \
930 930
	man/mon-collector.7
931 931

  
932
manrst = $(patsubst %.1,%.rst,$(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS))))
932
# Remove extensions from all filenames in man_MANS
933
mannoext = $(patsubst %.1,%,$(patsubst %.7,%,$(patsubst %.8,%,$(man_MANS))))
934

  
935
manrst = $(patsubst %,%.rst,$(mannoext))
933 936
manhtml = $(patsubst %.rst,%.html,$(manrst))
934 937
mangen = $(patsubst %.rst,%.gen,$(manrst))
935 938
maninput = \
......
1407 1410
	  echo "ENABLE_SPLIT_QUERY = $(ENABLE_SPLIT_QUERY)"; \
1408 1411
	  echo "ENABLE_RESTRICTED_COMMANDS = $(ENABLE_RESTRICTED_COMMANDS)"; \
1409 1412
	  echo "ENABLE_MONITORING = $(ENABLE_MONITORING)"; \
1413
## Write dictionary with man page name as the key and the section number as the
1414
## value
1415
	  echo "MAN_PAGES = {"; \
1416
	  for i in $(notdir $(man_MANS)); do \
1417
	    echo "$$i" | sed -re 's/^(.*)\.([0-9]+)$$/  "\1": \2,/g'; \
1418
	  done; \
1419
	  echo "}"; \
1410 1420
	} > $@
1411 1421

  
1412 1422
lib/_vcsversion.py: Makefile vcs-version | stamp-directories

Also available in: Unified diff