Commit 02d571c2 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Fix document version and date for git build.

Change mkreldate.sh to output just the date, so it can be used in the
manual too.
parent fefbd81f
Pipeline #17180012 passed with stages
in 13 minutes and 55 seconds
......@@ -140,7 +140,7 @@ keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.SIDEBAR $(srcdir)/OPS.PGP $(srcdir
> keymap_alldefs.h
reldate.h: $(srcdir)/mkreldate.sh $(srcdir)/ChangeLog
(cd $(srcdir) && ./mkreldate.sh) > reldate.h
echo 'const char *ReleaseDate = "'`(cd $(srcdir) && ./mkreldate.sh)`'";' > reldate.h
# The '#undef ENABLE_NLS' is to work around an automake ordering issue:
# BUILT_SOURCES are processed before SUBDIRS.
......
......@@ -187,8 +187,9 @@ smime_keys.1: $(srcdir)/smime_keys.man
stamp-doc-xml: makedoc$(EXEEXT) $(top_srcdir)/init.h \
manual.xml.head $(top_srcdir)/functions.h $(top_srcdir)/OPS* manual.xml.tail \
$(srcdir)/gen-map-doc $(top_srcdir)/VERSION $(top_srcdir)/ChangeLog
( date=`head -n 1 $(top_srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1` && \
sed -e "s/@VERSION\@/`cat $(top_srcdir)/VERSION` ($$date)/" $(srcdir)/manual.xml.head && \
( date=`(cd $(top_srcdir) && ./mkreldate.sh)` && \
version=`(cd $(top_srcdir) && env sh ./version.sh)` && \
sed -e "s/@VERSION\@/$$version ($$date)/" $(srcdir)/manual.xml.head && \
$(MAKEDOC_CPP) $(top_srcdir)/init.h | ./makedoc$(EXEEXT) -s && \
$(MAKEDOC_CPP) $(top_srcdir)/functions.h | \
perl $(srcdir)/gen-map-doc $(srcdir)/manual.xml.tail $(top_srcdir)/OPS* \
......
......@@ -8,4 +8,4 @@ else
reldate=$(head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1)
fi
echo 'const char *ReleaseDate = "'$reldate'";'
echo $reldate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment