2 -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \
3 -e "s/%DISTR_VERSION%/@DISTR_VERSION@/g" \
4 -e "s{%prefix%{@prefix@{g" \
5 -e "s{%sysconfdir%{@sysconfdir@{g"
8 LC_ALL=$(DATE_LANG) perl -MPOSIX -e '\
9 @fi=lstat("'$${MAN_FILE}'"); \
10 print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null
12 mc.1: $(srcdir)/mc.1.in
13 MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
14 sed $(SED_PARAMETERS) $< > $@
16 mcedit.1: $(srcdir)/mcedit.1.in
17 MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
18 sed $(SED_PARAMETERS) $< > $@
20 mcview.1: $(srcdir)/mcview.1.in
21 MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
22 sed $(SED_PARAMETERS) $< > $@