diff --git a/scripts/update_single_include.sh b/scripts/update_single_include.sh index 68a30ad..b7e1141 100755 --- a/scripts/update_single_include.sh +++ b/scripts/update_single_include.sh @@ -1,8 +1,9 @@ #!/usr/bin/env sh -if [ "${MESON_SOURCE_ROOT}" != "" ] -then - cd ${MESON_SOURCE_ROOT} -fi +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +SOURCE_ROOT=$(dirname "${DIR}") + +echo "Move to Source Root: ${SOURCE_ROOT}" +cd ${SOURCE_ROOT} python3 amalgamate/amalgamate.py -c amalgamate/config.json -s include -v yes