Skip to content

Commit

Permalink
Submodule helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Mar 18, 2024
1 parent b38b13b commit 8d96ea4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ush/submodules/add_submodules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# add_submodules.sh
# add submodules to the git commit

my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"

rdasdir=${1:-${my_dir}/../../}

repos="
oops
vader
saber
ioda
ufo
fv3-jedi
mpas-jedi
iodaconv
"

for r in $repos; do
echo "Adding ${rdasdir}/sorc/${r}"
cd ${rdasdir}/sorc
git add ${r}
done
24 changes: 24 additions & 0 deletions ush/submodules/update_develop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# update_develop.sh
# update specified repositories to most recent develop hash

repos="
oops
vader
saber
ioda
ufo
fv3-jedi
mpas-jedi
iodaconv
"

my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"

rdasdir=${1:-${my_dir}/../../}

for r in $repos; do
echo "Updating ${rdasdir}/sorc/${r}"
cd ${rdasdir}/sorc
git submodule update --remote --merge ${r}
done

0 comments on commit 8d96ea4

Please sign in to comment.