veilidchat/dev-setup/_script_common

17 lines
379 B
Plaintext
Raw Normal View History

2023-01-10 21:04:18 -05:00
set -eo pipefail
get_abs_filename() {
# $1 : relative filename
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
}
# Veilid location
2024-04-29 13:41:19 -04:00
VEILIDDIR=$(get_abs_filename "$(git rev-parse --show-toplevel)/../veilid")
2023-01-10 21:04:18 -05:00
if [ ! -d "$VEILIDDIR" ]; then
echo 'Veilid git clone needs to be at $VEILIDDIR'
exit 1
fi
2023-11-16 07:51:55 -05:00
2024-04-29 13:41:19 -04:00
# App location
APPDIR=$(git rev-parse --show-toplevel)