From 015741fd0184cab1c5fa8a9cb27f1fcbc276601c Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sun, 16 Feb 2025 11:13:09 -0500 Subject: [PATCH] update .gitignore and add update-symlinks helper script --- .gitignore | 3 +++ .../src/mocha-python/update-symlinks.sh | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 mocha-python/src/mocha-python/update-symlinks.sh diff --git a/.gitignore b/.gitignore index 52b7aad..fe65cbf 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ __pycache__ *.mcl *.mcx +# Symbolic links don't need to be tracked +mocha-python/src/mocha-python/editor +mocha-python/src/mocha-python/framework diff --git a/mocha-python/src/mocha-python/update-symlinks.sh b/mocha-python/src/mocha-python/update-symlinks.sh new file mode 100755 index 0000000..4bd2ad7 --- /dev/null +++ b/mocha-python/src/mocha-python/update-symlinks.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +rm editor +rm framework + +git submodule init && git submodule update + +if [ ! -d ../../../editor-python/editor-python/src/editor ]; then + echo "editor-python not found; did you run 'git submodule init && git submodule update' ?" +fi +if [ ! -d ../../../framework-python/lib/mbs/framework ]; then + echo "framework-python not found; did you run 'git submodule init && git submodule update' ?" +fi + +ln -s ../../../editor-python/editor-python/src/editor . +ln -s ../../../framework-python/lib/mbs/framework . +