Skip to content

Commit

Permalink
Merge pull request #138 from timvideos/submodule-script
Browse files Browse the repository at this point in the history
Changes to submodule management script.
  • Loading branch information
mithro committed Nov 15, 2015
2 parents 403c33e + 1cced34 commit 3729fcf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion third_party/update.sh → third_party/merge-upstream.sh
Expand Up @@ -32,12 +32,21 @@ fi

for TARGET in $TARGETS; do
(
case $TARGET in
lite*|mi*)
BRANCH=legacy
;;
*)
BRANCH=master
;;
esac

cd $TARGET
echo
echo "$TARGET checking for updates.."
BEFORE_VER=$(git describe --always --dirty)
git fetch origin | sed -e's/^/ /'
git checkout origin/master | sed -e's/^/ /'
git checkout origin/$BRANCH | sed -e's/^/ /'
AFTER_VER=$(git describe --always --dirty)
if [ x"$BEFORE_VER" = x"$AFTER_VER" ]; then
echo "$TARGET is unchanged"
Expand Down
2 changes: 1 addition & 1 deletion third_party/migen
2 changes: 1 addition & 1 deletion third_party/misoc

0 comments on commit 3729fcf

Please sign in to comment.