1 # I put both stuff useful for the user and developer in this file. Could
2 # separate and have a env-user.sh, env-compile.sh, env-developer.sh,
3 # but it's not worth it.
5 #!!!!You need to source me with "source env.sh" from the good directory!!!!
13 if [ ! -r $DIR/standard.iso
]
14 then echo "There is no standard.iso in '$DIR'.
15 Are you sure you run this script from the coccinelle directory ?
16 Alternatively, provide the coccinelle directory as the first argument.
21 ##############################################################################
23 ##############################################################################
25 ##############################################################################
27 ##############################################################################
29 # To find the data/ files such as the default standard.h file.
30 # Cf also globals/config.ml
31 echo setting COCCINELLE_HOME
=${COCCINELLE_HOME:=$DIR}
33 # To find pycaml dynamic library
34 echo setting LD_LIBRARY_PATH
=${LD_LIBRARY_PATH:=$COCCINELLE_HOME:$LD_LIBRARY_PATH}
36 # To find .py files like the one in python/coccib
37 echo setting PYTHONPATH
=${PYTHONPATH:=$COCCINELLE_HOME/python:$PYTHONPATH}
39 export COCCINELLE_HOME LD_LIBRARY_PATH PYTHONPATH