File 5851-Don-t-build-man-pages-for-OTP-27.patch of Package erlang

From bf9a35e7540e5d39b124904f1576842641719028 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Mon, 15 Jul 2024 14:28:48 +0200
Subject: [PATCH 1/5] Don't build man pages for OTP 27

---
 .github/scripts/release-docs.sh         | 14 ++++++++++----
 .github/scripts/sync-github-releases.sh |  2 +-
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/.github/scripts/release-docs.sh b/.github/scripts/release-docs.sh
index a21e32406a..d47f248996 100755
--- a/.github/scripts/release-docs.sh
+++ b/.github/scripts/release-docs.sh
@@ -1,8 +1,14 @@
-#!/bin/sh
+#!/bin/bash
 
-docker run -v $PWD/:/github otp "make release docs release_docs && make release_docs DOC_TARGETS='man html pdf' RELEASE_ROOT=/github/docs"
+if [[ $1 < 27 ]]; then
+    docker run -v $PWD/:/github otp "make release docs release_docs && make release_docs DOC_TARGETS='man html pdf' RELEASE_ROOT=/github/docs"
+else
+    docker run -v $PWD/:/github otp ".otp_build download_ex_doc && make release docs release_docs && make release_docs DOC_TARGETS=html RELEASE_ROOT=/github/docs"
+fi
 sudo chown -R `whoami` docs
 cd docs
-tar czf ../otp_doc_man.tar.gz man
-rm -rf man
+if [[ $1 < 27 ]]; then
+    tar czf ../otp_doc_man.tar.gz man
+    rm -rf man
+fi
 tar czf ../otp_doc_html.tar.gz *
diff --git a/.github/scripts/sync-github-releases.sh b/.github/scripts/sync-github-releases.sh
index 48df370b22..50fa8fec71 100755
--- a/.github/scripts/sync-github-releases.sh
+++ b/.github/scripts/sync-github-releases.sh
@@ -233,7 +233,7 @@ if [ ${UPLOADED} = false ]; then
                -f otp_src/.github/dockerfiles/Dockerfile.64-bit .
         docker run -v "$PWD":/github otp \
                "/github/scripts/build-otp-tar -o /github/otp_clean_src.tar.gz /github/otp_src.tar.gz -b /buildroot/otp/ /buildroot/otp.tar.gz"
-        .github/scripts/release-docs.sh
+        .github/scripts/release-docs.sh $release
         .github/scripts/create-artifacts.sh downloads "${name}"
 
         ## Delete any artifacts that we should not upload
-- 
2.35.3

openSUSE Build Service is sponsored by