Skip to content

Commit

Permalink
WT-12779 s_docs not returning an error code when files are modified (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tod-johnson-mongodb committed Apr 4, 2024
1 parent 507fd7d commit f63ab99
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dist/s_docs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ wtperf_config()
# instead.
cat ../bench/wtperf/wtperf_opt_inline.h |
${CC:-cc} -E -DOPT_DEFINE_DOXYGEN - | python3 wtperf_config.py > $t
cp ../src/docs/wtperf.dox $t2 2>/dev/null
(echo '/START_AUTO_GENERATED_WTPERF_CONFIGURATION/+3,/STOP_AUTO_GENERATED_WTPERF_CONFIGURATION/-1d'
echo 'i'
echo ''
Expand All @@ -52,7 +53,14 @@ wtperf_config()
echo ''
echo '.'
echo 'w'
echo 'q') | ed ../src/docs/wtperf.dox 1>/dev/null 2>/dev/null
echo 'q') | ed $t2 1>/dev/null 2>/dev/null
if ! cmp -s ../src/docs/wtperf.dox $t2; then
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo '../src/docs/wtperf.dox changed. wtperf.dox needs to be committed.'
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
e=1
mv $t2 ../src/docs/wtperf.dox
fi
}

glossarychk()
Expand Down

0 comments on commit f63ab99

Please sign in to comment.