Skip to content
Snippets Groups Projects
Commit 62e7d0aa authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Addign safety net to build_dict.sh

        - check rootcint binary is present and issue error message if
          not
        - Error message gives hint of the problem root and suggest
          solution
parent 79f765f5
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,14 @@
# This script detect the root version and call the command necessary to build
# a Dictionnary, rootmap and pcm file accordingly
# check rootcint exist
command -v pipo >/dev/null 2>&1 || { printf >&2 "ERROR : rootcint binary not found.\n * For ROOT install from source check that \$ROOTSYS/bin is in your PATH\n * For Macports ROOT install consider adding /opt/local/bin to your PATH\n * For debian ROOT install consider adding /usr/bin to your PATH\n"; exit 1; }
# Checking that enought argument are given
if [ "$#" -lt 4 ]
then
echo "Dictionnary Generation in : $PWD"
echo "Incorrect argument number : 1.Header 2.DictName 3.Rootmap 4.LibName (optional)5.LinkDefFile"
echo "Incorrect argument number : 1.Header 2.DictName 3.Rootmap 4.LibName 5.(optional)LinkDefFile"
echo "Arguments are : $@"
exit 1
fi
......
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