File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ DEFAULT_DOC_TARGETS+=man
64
64
endif
65
65
DOC_TARGETS? =$(DEFAULT_DOC_TARGETS )
66
66
67
- EX_DOC_WARNINGS_AS_ERRORS? =true
67
+ EX_DOC_WARNINGS_AS_ERRORS? =default
68
68
69
69
docs : $(DOC_TARGETS )
70
70
Original file line number Diff line number Diff line change @@ -40,6 +40,17 @@ OUTPUT="$( { escript@EXEEXT@ "${EX_DOC}" "${ARGS[@]}"; } 2>&1 1>&3 | tee /dev/fd
40
40
# # Close fd 3 and 4
41
41
exec 3>& - 4>& -
42
42
43
+ set -x
44
+ # # If EX_DOC_WARNINGS_AS_ERRORS is not explicitly turned on
45
+ # # and any .app file is missing, we turn off warnings as errors
46
+ if [ " ${EX_DOC_WARNINGS_AS_ERRORS} " != " true" ]; then
47
+ for app in $ERL_TOP /lib/* /; do
48
+ if [ ! -f $app /ebin/* .app ]; then
49
+ EX_DOC_WARNINGS_AS_ERRORS=false
50
+ fi
51
+ done
52
+ fi
53
+
43
54
if [ " ${EX_DOC_WARNINGS_AS_ERRORS} " != " false" ]; then
44
55
if echo " ${OUTPUT} " | grep " warning:" 1> /dev/null; then
45
56
echo " ex_doc emitted warnings"
You can’t perform that action at this time.
0 commit comments