update .gitignore and add update-symlinks helper script
This commit is contained in:
parent
a6edede5c3
commit
015741fd01
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
|
||||
17
mocha-python/src/mocha-python/update-symlinks.sh
Executable file
17
mocha-python/src/mocha-python/update-symlinks.sh
Executable 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 .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user