mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-05 15:48:45 +00:00
feat: build libsurvive script; common clone or pull script
This commit is contained in:
parent
3f727cb3f2
commit
4f43920c27
3 changed files with 46 additions and 14 deletions
|
@ -6,20 +6,7 @@ set -ev
|
|||
|
||||
REPO_DIR=$1
|
||||
|
||||
if [[ -z $REPO_DIR ]]; then
|
||||
echo "Usage: $0 MONADO_REPO_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -d "$REPO_DIR" ]]; then
|
||||
if [[ ! -d "$REPO_DIR/.git" ]]; then
|
||||
echo "Error: $REPO_DIR exists but is not a git repository"
|
||||
exit 1
|
||||
fi
|
||||
git -C "$REPO_DIR" pull
|
||||
else
|
||||
git clone https://gitlab.freedesktop.org/monado/monado "$REPO_DIR"
|
||||
fi
|
||||
"$(dirname -- "$0")/_clone_or_pull.sh" "https://github.com/cntools/libsurvive" "$REPO_DIR"
|
||||
|
||||
cd "$REPO_DIR"
|
||||
mkdir -p build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue