Skip to content

Commit 4b5a25e

Browse files
committed
Apply antora customization in more cases: when build_antora.sh is present.
1 parent b274595 commit 4b5a25e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

ci_boost_release.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,17 +500,30 @@ def command_build(self):
500500

501501
os.chdir(self.root_dir)
502502
for directoryname in glob.iglob("libs/*", recursive=False):
503-
if os.path.isdir(directoryname) and os.path.isfile(
504-
os.path.join(directoryname, "doc", "antora_docs.sh")
505-
): # filter dirs
503+
if os.path.isdir(directoryname) and (
504+
os.path.isfile(os.path.join(directoryname, "doc", "antora_docs.sh"))
505+
or os.path.isfile(os.path.join(directoryname, "doc", "build_antora.sh"))
506+
):
506507
antora_libraries.append(directoryname)
508+
if os.path.isfile(os.path.join(directoryname, "doc", "antora_docs.sh")):
509+
utils.check_call(
510+
"dos2unix", os.path.join(directoryname, "doc", "antora_docs.sh")
511+
)
512+
if os.path.isfile(
513+
os.path.join(directoryname, "doc", "build_antora.sh")
514+
):
515+
utils.check_call(
516+
"dos2unix",
517+
os.path.join(directoryname, "doc", "build_antora.sh"),
518+
)
507519

508520
utils.check_call(
509521
"git", "config", "--global", "user.email", "ci-bot@example.com"
510522
)
511523
utils.check_call("git", "config", "--global", "user.name", "ci-bot")
512524

513525
for antora_lib in antora_libraries:
526+
os.chdir(self.root_dir)
514527
os.chdir(antora_lib)
515528
# for a submodule .git is a file pointing to the gitdir
516529
if not os.path.isfile(".git"):

0 commit comments

Comments
 (0)