Browse Source

add init/update submodules script

master
Charles Reid 7 years ago
parent
commit
0a5b6f3330
  1. 11
      init_submodules.sh
  2. 13
      update_thissubmodule.sh

11
init_submodules.sh

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
#!/bin/bash
#
# This is done once at the beginning.
for dir in `find * -maxdepth 0 -type d`; do
cd $dir
git checkout master
cd ..
done

13
update_thissubmodule.sh

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
#!/bin/bash
#
# This updates each repository submodule
for dir in `find * -maxdepth 0 -type d`; do
cd $dir
git pull
cd ../
done
git commit -a -m 'Updating submodules to latest'
git push origin master
Loading…
Cancel
Save