From 3e4f7cd947f77d6937ac56e11e186de8b4cbec18 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 20 Sep 2021 16:41:36 -0400 Subject: [PATCH] convenience script to clone or update all dependencies --- update.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 update.sh diff --git a/update.sh b/update.sh new file mode 100755 index 00000000..dcb0f8e6 --- /dev/null +++ b/update.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +GIT_USER=alcexhim +GIT_URL=git@github.com:$GIT_USER +GIT_PROJECTS="MBS.Audio MBS.Framework MBS.Framework.UserInterface MBS.Framework.Rendering UniversalEditor" + +for name in $GIT_PROJECTS; do + + if [ -d ../$name ]; then + cd ../$name && git pull + else + cd ../ && git clone $GIT_URL/$name + cd $name + fi + +done