(start_search): don't start quick search if file panel is empty.
[midnight-commander.git] / doc / man / date-of-man-include.am
blobede02e478b96e2ff3ab5fd1fa02e1e22ff14ec32
1 SED_PARAMETERS = \
2         -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \
3         -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \
4         -e "s{%sysconfdir%{@sysconfdir@{g" \
5         -e "s{%libexecdir%{@libexecdir@{g" \
6         -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \
7         -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g"
9 MAN_DATE_CMD = \
10         LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\
11             @fi=lstat("'$${MAN_FILE}'"); \
12             print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null
14 mc.1: $(srcdir)/mc.1.in
15         MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \
16         $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@'
18 mcview.1: $(srcdir)/mcview.1.in
19         MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \
20         $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@'
22 if USE_INTERNAL_EDIT
23 mcedit.1: $(srcdir)/mcedit.1.in
24         MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \
25         $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@'
26 endif
28 if USE_DIFF
29 mcdiff.1: $(srcdir)/mcdiff.1.in
30         MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \
31         $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@'
32 endif