Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Aug 21, 2024
1 parent 5d08f19 commit b5f964d
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions support/scripts/tag_submodule.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#!/bin/bash

sub=("doc" "crates/metadata/std")
root=`git rev-parse --show-toplevel`
if [ "$DRY_RUN" = "true" ]; then
echo "tagging skipped"
else
sub=("doc" "crates/metadata/std")
root=`git rev-parse --show-toplevel`

pushd ${root}
pushd ${root}

for dir in ${sub[@]}
do
pushd ${dir}
git tag -f v$1
git push origin -f v$1
popd
done
for dir in ${sub[@]}
do
pushd ${dir}
git tag -f v$1
git push origin -f v$1
popd
done

popd
popd
fi

0 comments on commit b5f964d

Please sign in to comment.