Skip to content
Snippets Groups Projects
Commit 552f88f5 authored by sebastien masson's avatar sebastien masson
Browse files

gsed compatibility and add debug infomation in manual_build.sh

parent 20034cd3
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,12 @@ CMP_NAM=$1
# Default case for Linux sed, just use "-i"
sedi=(-i)
case "$(uname)" in
# For macOS, use two parameters
Darwin*) sedi=(-i "")
# For macOS, use two parameters
Darwin*)
isgnu=$( sed --version 2>/dev/null )
[ $( echo $? ) -eq 0 ] && isgnu=$( echo $isgnu | grep -ic gnu ) || isgnu=0
[ $isgnu -eq 0 ] && edi=(-i "")
;;
esac
## Initialisation
......@@ -47,7 +51,7 @@ esac
# Model
if [ "${CMP_NAM}" == 'all' ] ; then
models="$manuals"
elif [ "${CMP_NAM}" == '' ]; then
elif [ "${CMP_NAM}" == '' ] ; then
models='NEMO'
elif [[ "${manuals}" == *"${CMP_NAM}"* ]] ; then
models="${CMP_NAM}"
......@@ -91,7 +95,16 @@ fi
# Echo current font path
fontawesome=`grep defaultfontfeatures latex/global/packages.tex | sed -e 's/.*=\(.*\)}/\1/'`
echo "Fontawesome path is $fontawesome"
if [ -d $fontawesome ] ; then
echo "Fontawesome path is $fontawesome"
else
echo
echo "ERROR with fontawesome path : "
echo " $fontawesome does not exist"
echo " Define the proper path to the fonts/opentype/public/fontawesome directory in latex/global/packages.tex"
echo
exit 1
fi
# Source shared functions
. tools/shr_func.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment