git: b6ee0b9a73 - main - Allow hardware notes to be generated from STABLE

Colin Percival <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b6ee0b9a735b0c66640a17253f2e51a1ad685dee

commit b6ee0b9a735b0c66640a17253f2e51a1ad685dee
Author:     Colin Percival <[email protected]>
AuthorDate: 2025-04-04 22:49:07 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2025-04-04 22:49:07 +0000

    Allow hardware notes to be generated from STABLE
    
    e.g., make generate-hardware-notes RELEASE=14.3 STABLE=YES
    
    Suggested by:   ziaee
    Sponsored by:   Amazon
---
 website/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/website/Makefile b/website/Makefile
index 9a6b0d84fa..23b71b1b36 100644
--- a/website/Makefile
+++ b/website/Makefile
@@ -115,8 +115,8 @@ generate-release:
 .endif
 
 generate-hardware-notes:
-.if empty(RELEASE) && empty(MAIN)
-	@echo "Specify a release or use main. Example RELEASE=14.1 MAIN=true"
+.if empty(RELEASE) && empty(STABLE) && empty(MAIN)
+	@echo "Specify a release or use stable or main. Example RELEASE=14.1 MAIN=true"
 .else
 .if exists(./tmp)
 	rm -fr ./tmp
@@ -126,6 +126,8 @@ generate-hardware-notes:
 	@echo "---------------------------------------------------------------"
 .if !empty(MAIN)
 	git clone --depth 1 --branch main https://git.FreeBSD.org/src.git tmp
+.elif !empty(STABLE)
+	git clone --depth 1 --branch stable/${RELEASE:R} https://git.FreeBSD.org/src.git tmp
 .elif !empty(RELEASE)
 	git clone --depth 1 --branch releng/${RELEASE} https://git.FreeBSD.org/src.git tmp
 .endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.