This is a bit less work than manually updating them.
Signed-off-by: Keith Packard <keithp@keithp.com>
RELEASE_DATE=2019-12-05
AC_SUBST(RELEASE_DATE)
+DOC_DATE=`LC_ALL=C date -d $RELEASE_DATE +'%d %b %Y'`
+
+AC_SUBST(DOC_DATE)
+
VERSION_DASH=`echo $VERSION | sed 's/\./-/g'`
AC_SUBST(VERSION_DASH)
AC_SUBST(ANDROID_VERSION)
SUFFIXES = .dot .svg .inc .txt .adoc .pdf .html
+ATTRIBUTES=--attribute="revdate=$(DOC_DATE)" --attribute="version=$(VERSION)"
+
.dot.svg:
dot -Tsvg -o$@ $*.dot
sed -e 's/^[ ]*//' -e 's/^\\//' $*.inc > $@
.adoc.html:
- asciidoctor -b html5 $*.adoc
+ asciidoctor $(ATTRIBUTES) -b html5 $*.adoc
.adoc.pdf:
- asciidoctor-pdf $*.adoc
+ asciidoctor-pdf $(ATTRIBUTES) $*.adoc
all: $(HTML) $(PDF)
easymini-release-notes.inc
telegps-release-notes.inc
-* Update version in main docs
-
- altusmetrum.txt
- easymini.txt
- micropeak.txt
- telegps.txt
- telemetry.txt
-
* Add release-notes-${version}.inc to Makefile.am and git
* Make sure new hardware specs are documented in specs.inc
= The Altus Metrum System: An Owner's Manual for Altus Metrum Rocketry Electronics
Keith Packard <keithp@keithp.com>; Bdale Garbee <bdale@gag.com>; Bob Finch; Anthony Towns
:title-logo-image: image:../themes/background.png[]
-:revnumber: v1.9.2
-:revdate: 13 Feb 2020
+:revnumber: v{version}
+:revdate: 1 Jan 1970
:icons:
:icontype: svg
:copyright: Bdale Garbee and Keith Packard 2020
= EasyMini Owner's Manual
Keith Packard <keithp@keithp.com>; Bdale Garbee <bdale@gag.com>
:title-logo-image: image:../themes/background.png[]
-:revnumber: v1.9.2
-:revdate: 13 Feb 2020
+:revnumber: v{version}
+:revdate: 01 Jan 1970
:copyright: Bdale Garbee and Keith Packard 2020
:doctype: book
:numbered:
= MicroPeak Owner's Manual
Keith Packard <keithp@keithp.com>; Bdale Garbee <bdale@gag.com>
-:revnumber: v1.9.2
-:revdate: 13 Feb 2020
+:revnumber: v{version}
+:revdate: 01 Jan 1970
:copyright: Bdale Garbee and Keith Packard 2020
:stylesheet: am.css
:linkcss:
= TeleGPS Owner's Manual
Keith Packard <keithp@keithp.com>; Bdale Garbee <bdale@gag.com>
:title-logo-image: image:../themes/background.png[]
-:revnumber: v1.9.2
-:revdate: 13 Feb 2020
+:revnumber: v{version}
+:revdate: 01 Jan 1970
:copyright: Bdale Garbee and Keith Packard 2020
:stylesheet: am.css
:linkcss:
= TeleLaunch: The Altus Metrum Wireless Launch Control System
Bdale Garbee <bdale@gag.com>
:title-logo-image: image:../themes/background.png[]
-:revnumber: v0.1
-:revdate: 16 Feb 2019
+:revnumber: v{version}
+:revdate: 01 Jan 1970
:icons:
:icontype: svg
:revremark: initial draft
= AltOS Telemetry
Keith Packard <keithp@keithp.com>; Bdale Garbee <bdale@gag.com>
-:revnumber: v1.9.2
-:revdate: 13 Feb 2020
+:revnumber: v{version}
+:revdate: 01 Jan 1970
:copyright: Bdale Garbee and Keith Packard 2020
:stylesheet: am.css
:linkcss: