Used for some failed test

This commit is contained in:
Geoffrey Frogeye 2017-02-07 09:36:25 +01:00
parent 5903c0a437
commit d24a04cc3a

View file

@ -23,13 +23,16 @@ fi
mkdir -p $DEBLOC_DB &> /dev/null
mkdir -p $DEBLOC_ROOT &> /dev/null
export PATH="$DEBLOC_ROOT/usr/bin:$DEBLOC_ROOT/usr/games/:$DEBLOC_ROOT/usr/lib/git-core:$PATH"
export LIBRARY_PATH="$DEBLOC_LD:$LIBRARY_PATH"
export C_INCLUDE_PATH="$DEBLOC_ROOT/usr/include:$C_INCLUDE_PATH"
export CPLUS_INCLUDE_PATH="$DEBLOC_ROOT/usr/include:$CPLUS_INCLUDE_PATH"
export LD_LIBRARY_PATH="$DEBLOC_LD:$LD_LIBRARY_PATH"
export PYTHONPATH="$DEBLOC_ROOT/usr/lib/python3/dist-packages:$PYTHONPATH"
export QT_QPA_PLATFORM_PLUGIN_PATH="$DEBLOC_ROOT/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms"
function _debloc-setVars {
export PATH="$1/usr/bin:$1/usr/games/:$1/usr/lib/git-core:$PATH"
export LIBRARY_PATH="$2:$LIBRARY_PATH"
export C_INCLUDE_PATH="$1/usr/include:$C_INCLUDE_PATH"
export CPLUS_INCLUDE_PATH="$1/usr/include:$CPLUS_INCLUDE_PATH"
export LD_LIBRARY_PATH="$2:$LD_LIBRARY_PATH"
export PYTHONPATH="$1/usr/lib/python3/dist-packages:$PYTHONPATH"
export QT_QPA_PLATFORM_PLUGIN_PATH="$1/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms"
}
_debloc-setVars "$DEBLOC_ROOT" "$DEBLOC_LD"
# Tell if a package exists
function _debloc-exists { # package