mirror of https://github.com/CGAL/cgal
Fix the consequences of `set -e`
And now the bash options, like `-x` and `-e`, are passed to sub-shells using the positional parameter `$-`.
This commit is contained in:
parent
07e34b2773
commit
1e1752c18e
|
|
@ -40,8 +40,8 @@ cd ..
|
|||
echo "Output generated"
|
||||
if ! [ -d "$DOC_REF" ]; then
|
||||
echo "No reference given. Script is finished."
|
||||
exit 2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#diff the output and the reference output, ignoring the differences in whitespaces
|
||||
diff -u -N -w ./doc_data $DOC_REF > ./diff.txt
|
||||
diff -u -N -w ./doc_data $DOC_REF > ./diff.txt || true
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ make -j$NB_CORES doc &> /dev/null
|
|||
echo "done."
|
||||
cd ../ #scripts
|
||||
echo "Creating text files for diff...."
|
||||
bash compare_testsuites.sh $PWD/build_doc/doc_output 1> /dev/null
|
||||
bash -$- compare_testsuites.sh $PWD/build_doc/doc_output 1> /dev/null
|
||||
mv ./doc_data ./doc_ref
|
||||
echo "done."
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ cd ../ #scripts
|
|||
DOXYGEN_1=$($PATH_TO_1 --version)
|
||||
DOXYGEN_2=$($PATH_TO_2 --version)
|
||||
echo "Comparing results..."
|
||||
bash ./compare_testsuites.sh $PWD/build_doc/doc_output $PWD/doc_ref 1> /dev/null
|
||||
bash -$- ./compare_testsuites.sh $PWD/build_doc/doc_output $PWD/doc_ref 1> /dev/null
|
||||
echo "done."
|
||||
#add post-processing
|
||||
cd ./build_doc
|
||||
|
|
|
|||
Loading…
Reference in New Issue