update .gitignore and add update-symlinks helper script

This commit is contained in:
Michael Becker 2025-02-16 11:13:09 -05:00
parent a6edede5c3
commit 015741fd01
2 changed files with 20 additions and 0 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -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 .