# Helper text for dealing with man pages.
$install_man_format =
- ' sect=@SECTION@; \
- inst=`echo "@MAN@" | sed '$(transform)'`.@FULLSECT@; \
- echo installing @MAN@ as $(mandir)/man$$sect/$$inst; \
- $(INSTALL_DATA) $(srcdir)/@MAN@ $(mandir)/man$$sect/$$inst; \
- if test -d $(mandir)/cat$$sect; then \
- echo formatting @MAN@ as $(mandir)/cat$$sect/$$inst; \
- $(NROFF) -man $(srcdir)/@MAN@ > $(mandir)/cat$$sect/$$inst; \
- else \
- true; \
+ ' sect=@SECTION@; \\
+ inst=`echo "@MAN@" | sed \'$(transform)\'`.@FULLSECT@; \\
+ echo installing @MAN@ as $(mandir)/man$$sect/$$inst; \\
+ $(INSTALL_DATA) $(srcdir)/@MAN@ $(mandir)/man$$sect/$$inst; \\
+ if test -d $(mandir)/cat$$sect; then \\
+ echo formatting @MAN@ as $(mandir)/cat$$sect/$$inst; \\
+ $(NROFF) -man $(srcdir)/@MAN@ > $(mandir)/cat$$sect/$$inst; \\
+ else \\
+ true; \\
fi
';
$uninstall_man_format =
- ' inst=`echo "@MAN@" | sed '$(transform)'`.@FULLSECT@; \
+ ' inst=`echo "@MAN@" | sed \'$(transform)\'`.@FULLSECT@; \\
rm -f $(mandir)/man@SECTION@/$$inst $(mandir)/cat@SECTION@/$$inst
';
# Generate install target.
local ($key);
- foreach key (keys %inames)
+ foreach $key (keys %inames)
{
$_ = $install_man_format;
s/@SECTION@/$secmap{$key}/g;