@@ -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