Updated scripts to support git submodules

This commit is contained in:
2021-01-28 11:00:11 -05:00
parent 4b70631e63
commit 025c693f87
5 changed files with 1615 additions and 3 deletions

View File

@ -9,6 +9,9 @@ function do_git {
cd $1 cd $1
git ls-remote --get-url git ls-remote --get-url
git pull git pull
if [ -f .gitmodules ]; then
git pull --recurse-submodules
fi
cd .. cd ..
echo echo
} }

1603
bin/dropbox.py Executable file

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,8 @@ echo "97453163f195ae988657fc1ef4943bddd08705a9"
# ProbeStar stuff # ProbeStar stuff
mkdir -p ProbeStar mkdir -p ProbeStar
cd ProbeStar cd ProbeStar
for i in Cnomicon Cybersecurity KnowledgeBase linux_tools pi_tools Pynomicon Radio Robotics Software windows_tools rm -rf AutoSecurity CyberSecurity Database
for i in Cnomicon Cybersecurity KnowledgeBase Pynomicon Radio Robotics Software git_tools linux_tools pi_tools windows_tools
do do
echo "ProbeStar: $i" echo "ProbeStar: $i"
if [ -d $i ]; then if [ -d $i ]; then
@ -22,9 +23,8 @@ do
ln -fs ProbeStar/$i ln -fs ProbeStar/$i
cd ProbeStar cd ProbeStar
done done
rm -rf CyberSecurity Database
cd $HOME cd $HOME
rm CyberSecurity Database rm -f CyberSecurity Database CyVehicle
cp linux_tools/bin/* ~/bin cp linux_tools/bin/* ~/bin
# NTCNA stuff # NTCNA stuff

View File

@ -5,6 +5,9 @@ function do_git {
cd $1 cd $1
git ls-remote --get-url git ls-remote --get-url
git pull git pull
if [ -f .gitmodules ]; then
git pull --recurse-submodules
fi
cd .. cd ..
echo echo
} }

View File

@ -5,6 +5,9 @@ function do_git {
cd $1 cd $1
git ls-remote --get-url git ls-remote --get-url
git pull git pull
if [ -f .gitmodules ]; then
git pull --recurse-submodules
fi
cd .. cd ..
echo echo
} }