Revision 387863a5

b/Makefile.am
637 637
	autotools/docpp \
638 638
	autotools/gen-coverage \
639 639
	autotools/testrunner \
640
	autotools/wrong-hardcoded-paths \
640 641
	$(RUN_IN_TEMPDIR) \
641 642
	daemons/daemon-util.in \
642 643
	daemons/ganeti-cleaner.in \
......
999 1000

  
1000 1001
man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py \
1001 1002
	lib/build/shell_example_lexer.py
1003
	@echo "Checking $< for hardcoded paths..."
1004
	@if grep -nEf autotools/wrong-hardcoded-paths $<; then \
1005
	  echo "Man page $< has harcoded paths (see above)!" 1>&2 ; \
1006
	  exit 1; \
1007
	fi
1002 1008
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@
1003 1009

  
1004 1010
man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.man
b/autotools/wrong-hardcoded-paths
1
/etc/ganeti
2
/usr/(local/)?lib/ganeti
3
/(usr/local/)?var/(lib|run|log)/ganeti

Also available in: Unified diff