File 0447-docs-Don-t-add-rc-to-main-otp-version-it-already-has.patch of Package erlang

From d4cad097f2b53caf05c749f762ebb3503f9f5cb3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Wed, 18 Jun 2025 20:19:41 +0200
Subject: [PATCH] docs: Don't add rc to main otp version, it already has it

---
 make/doc.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/make/doc.mk b/make/doc.mk
index df411bedb6..dc6b70a5f9 100644
--- a/make/doc.mk
+++ b/make/doc.mk
@@ -72,7 +72,11 @@ docs: $(DOC_TARGETS)
 
 chunks:
 
+ifneq ($(VSN), $(shell cat "$(ERL_TOP)/OTP_VERSION"))
 DOC_VSN=$(shell if ! grep -q rc0 "$(ERL_TOP)/OTP_VERSION"; then echo "$(VSN)"; else echo "$(VSN)-rc0"; fi)
+else
+DOC_VSN=$(VSN)
+endif
 
 HTML_DEPS?=$(wildcard $(APP_EBIN_DIR)/*.beam) $(wildcard *.md) $(wildcard */*.md) $(wildcard assets/*)
 
-- 
2.43.0

openSUSE Build Service is sponsored by