From: Matthew Newton Date: Sat, 9 Apr 2016 20:52:53 +0000 (+0100) Subject: update man pages on install to have correct paths X-Git-Tag: release_3_0_12~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509f3fcd205f667840d88edb5b91be5ca0431678;p=thirdparty%2Ffreeradius-server.git update man pages on install to have correct paths --- diff --git a/Makefile b/Makefile index 219e55d4335..5749199944f 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,11 @@ install.man: $(subst man/,$(R)$(mandir)/,$(MANFILES)) $(R)$(mandir)/%: man/% @echo INSTALL $(notdir $<) - @$(INSTALL) -m 644 $< $@ + @sed -e "s,/etc/raddb,$(raddbdir),g" \ + -e "s,/usr/local/share,$(datarootdir),g" \ + $< > $<.subst + @$(INSTALL) -m 644 $<.subst $@ + @rm $<.subst # # Don't install rlm_test