mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-06 08:15:26 -04:00
refactor setup
This commit is contained in:
parent
bbde85a134
commit
e8046e9a89
9 changed files with 96 additions and 42 deletions
16
dev-setup/_script_common
Normal file
16
dev-setup/_script_common
Normal file
|
@ -0,0 +1,16 @@
|
|||
set -eo pipefail
|
||||
|
||||
get_abs_filename() {
|
||||
# $1 : relative filename
|
||||
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
|
||||
}
|
||||
|
||||
# Veilid location
|
||||
VEILIDDIR=$(get_abs_filename "$SCRIPTDIR/../../veilid")
|
||||
if [ ! -d "$VEILIDDIR" ]; then
|
||||
echo 'Veilid git clone needs to be at $VEILIDDIR'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# VeilidChat location
|
||||
VEILIDCHATDIR=$(get_abs_filename "$SCRIPTDIR/../../veilid")
|
Loading…
Add table
Add a link
Reference in a new issue