mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-04 07:57:45 +00:00
build: Use the AWK variable provided by configure
Signed-off-by: Ferenc Wágner <wferi@debian.org> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
parent
6a476017b9
commit
b09b96fe6f
@ -152,9 +152,9 @@ HTML_DOCS = $(dist_man_MANS:%=%.html) $(man_MANS:%=%.html)
|
||||
DATE_FMT="%Y-%m-%d" && \
|
||||
SOURCE_DATE_EPOCH="$${SOURCE_DATE_EPOCH:-$$(date +%s)}" && \
|
||||
date="$$(date -u -d "@$$SOURCE_DATE_EPOCH" "+$$DATE_FMT" 2>/dev/null || date -u -r "$$SOURCE_DATE_EPOCH" "+$$DATE_FMT" 2>/dev/null || date -u "+$$DATE_FMT")" && \
|
||||
awk "{print}(\$$1 ~ /@COMMONIPCERRORS@/){exit 0}" ${top_srcdir}/man/$@.in > $@-t-t && \
|
||||
$(AWK) "{print}(\$$1 ~ /@COMMONIPCERRORS@/){exit 0}" ${top_srcdir}/man/$@.in > $@-t-t && \
|
||||
cat ${top_srcdir}/man/$(autogen_common) >> $@-t-t && \
|
||||
awk -v p=0 "(\$$1 ~ /@COMMONIPCERRORS@/){p = 1} {if(p==1)print}" ${top_srcdir}/man/$@.in >> $@-t-t && \
|
||||
$(AWK) -v p=0 "(\$$1 ~ /@COMMONIPCERRORS@/){p = 1} {if(p==1)print}" ${top_srcdir}/man/$@.in >> $@-t-t && \
|
||||
cat $@-t-t | \
|
||||
$(SED) -e 's#@BUILDDATE@#'$$date'#g' \
|
||||
-e 's#@COMMONIPCERRORS@##g' \
|
||||
|
Loading…
Reference in New Issue
Block a user