Build/Hooks/default.sh
2022-02-19 14:25:28 +01:00

15 lines
266 B
Bash
Executable File

#!/bin/bash
strindex() {
x="${1%%$2*}"
[[ "$x" = "$1" ]] && echo -1 || echo "${#x}"
}
orgpath="$(pwd)"
repository="Karaka"
pos=$(strindex "$orgpath" "$repository")
length=$pos+${#repository}
rootpath=${orgpath:0:length}
. ${rootpath}/Build/Hooks/delegator.sh