File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 2
2
# Copyright (c) 2008-2022 Cisco Systems, Inc. All rights reserved.
3
3
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
4
4
# Copyright (c) 2020 Intel, Inc. All rights reserved.
5
+ # Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
5
6
# $COPYRIGHT$
6
7
#
7
8
# Additional copyrights may follow
@@ -22,8 +23,8 @@ PRTE_V_SPHINX_MAN = $(prte__v_SPHINX_MAN_$V)
22
23
prte__v_SPHINX_MAN_ = $(prte__v_SPHINX_MAN_$AM_DEFAULT_VERBOSITY )
23
24
prte__v_SPHINX_MAN_0 = @echo " GENERATE man pages";
24
25
25
- PRTE_V_TXT = $(prte__v_SPHINX_TXT_ $V )
26
- prte__v_TXT_ = $(prte__v_SPHINX_TXT_ $AM_DEFAULT_VERBOSITY )
26
+ PRTE_V_TXT = $(prte__v_TXT_ $V )
27
+ prte__v_TXT_ = $(prte__v_TXT_ $AM_DEFAULT_VERBOSITY )
27
28
prte__v_TXT_0 = @echo " GENERATE text files";
28
29
29
30
PRTE_V_LN_S = $(prte__v_LN_S_$V )
Original file line number Diff line number Diff line change @@ -718,6 +718,7 @@ AC_INCLUDES_DEFAULT
718
718
#
719
719
720
720
OAC_SETUP_SPHINX([$srcdir /docs/_build/html/index.html], [])
721
+ AC_CHECK_PROGS(PYTHON, [python3 python python2])
721
722
722
723
AS_IF([test -n " $OAC_MAKEDIST_DISABLE " ],
723
724
[AS_IF([test -n " $PRTE_MAKEDIST_DISABLE " ],
Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ $(TXT_SENTINEL_OUTPUT):
96
96
if PRTE_BUILD_DOCS
97
97
$(PRTE_V_TXT) $(SPHINX_BUILD) -M text "$(srcdir)" "$(OUTDIR)" $(SPHINX_OPTS)
98
98
else !PRTE_BUILD_DOCS
99
- $(PRTE_V_TXT) $(srcdir)/build-dummy-ini-files.py $(TXT_OUTDIR) $(ALL_TXT_BUILT)
99
+ $(PRTE_V_TXT) \
100
+ $(PYTHON) $(srcdir)/build-dummy-ini-files.py $(TXT_OUTDIR) $(ALL_TXT_BUILT); \
101
+ touch $(TXT_SENTINEL_OUTPUT)
100
102
endif !PRTE_BUILD_DOCS
101
103
102
104
maintainer-clean-local :
Original file line number Diff line number Diff line change 63
63
64
64
# Ensure the out directory exists
65
65
full_outdir = os .path .abspath (os .path .dirname (outfile ))
66
- # Use older form of os.mkdirs (without the exist_ok param) to make
67
- # this script runnable in as many environments as possible.
66
+ if not os .path .exists (full_outdir ):
67
+ # Use older form of os.mkdirs (without the exist_ok param) to
68
+ # make this script runnable in as many environments as
69
+ # possible.
70
+ os .makedirs (full_outdir )
71
+
68
72
try :
69
- os .makedirs (full_outdir , exists_ok = True )
70
73
# Write the output file
71
74
with open (outfile , 'w' ) as fp :
72
75
for section in sections :
73
76
# Use Python 2-friendly formatting for environments where
74
77
# we don't have Python 3 (!).
75
78
fp .write ("""[{}]
76
79
This help section is empty because PRRTE was built without Sphinx.\n """ .format (section ))
77
- except Exception :
80
+ except Exception as e :
81
+ print ("ERROR: {}" .format (e ))
78
82
pass
You can’t perform that action at this time.
0 commit comments