3
# Get the directory of this script.
5
CWD_SOURCE="${BASH_SOURCE[0]}"
6
while [ -h "$CWD_SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
7
DIR="$( cd -P "$( dirname "$CWD_SOURCE" )" >/dev/null 2>&1 && pwd )"
8
CWD_SOURCE="$(readlink "$CWD_SOURCE")"
9
[[ $SCWD_OURCE != /* ]] && CWD_SOURCE="$DIR/$CWD_SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
11
CWD="$( cd -P "$( dirname "$CWD_SOURCE" )" >/dev/null 2>&1 && pwd )"
13
declare -a SOURCES_DIRS=(
17
"src/libvqdr/function/"
19
"src/libvqdr/operator/"
21
"build/libvqdr.so.p/src/utils/"
22
"build/libvqdr.so.p/src/"
23
"build/libvqdr.so.p/src/libvqdr/"
24
"build/libvqdr.so.p/src/libvqdr/function/"
25
"build/libvqdr.so.p/src/libvqdr/operator/"
26
"build/libvqdr.so.p/src/libvqdr/value/"
28
"build/tests/test1.p/"
29
"build/tests/test2.p/"
33
declare -a SOURCES_DIRS2=()
38
for str in "${SOURCES_DIRS[@]}"; do
39
PARAM_STR+=" --directory "
44
for val in "${SOURCES_DIRS[@]}"
46
SOURCES_DIRS2+=("$CWD/$val")
49
# for val in "${SOURCES_DIRS2[@]}"
54
# echo "could not find it."