git: e4845727c0 - main - Split website generate-release target in two
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Mar 2024 00:52:06 UTC
The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/doc/commit/?id=e4845727c083d0c3fc110a0cd92cf8ff4b2716f8 commit e4845727c083d0c3fc110a0cd92cf8ff4b2716f8 Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2024-03-17 10:45:18 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2024-03-20 00:51:52 +0000 Split website generate-release target in two Turn this into a generate-release target and a generate-hardware-notes target, so I can add an upcoming release to the website and fill in the hardware notes after the relevant releng/X.Y branch exists. --- website/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/Makefile b/website/Makefile index ddfa597d31..545e4d13d5 100644 --- a/website/Makefile +++ b/website/Makefile @@ -108,6 +108,13 @@ releases-clean: rm -f data/releases.toml generate-release: +.if empty(RELEASE) + @echo "Specify a release. Example RELEASE=14.1" +.else + ${HUGO_CMD} new --kind release releases/${RELEASE}R/ +.endif + +generate-hardware-notes: .if empty(RELEASE) && empty(MAIN) @echo "Specify a release or use main. Example RELEASE=14.1 MAIN=true" .else @@ -122,7 +129,6 @@ generate-release: .elif !empty(RELEASE) git clone --depth 1 --branch releng/${RELEASE} https://git.FreeBSD.org/src.git tmp .endif - ${HUGO_CMD} new --kind release releases/${RELEASE}R/ ${RUBY_CMD} ./tools/hardware-notes-processor.rb content/en/releases/${RELEASE}R/hardware.adoc rm -fr ./tmp .endif