Signed-off-by: Matt Darfeuille <matd...@gmail.com> --- build/release | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
diff --git a/build/release b/build/release index 63dbf4d4..35a34055 100644 --- a/build/release +++ b/build/release @@ -34,6 +34,7 @@ # the branch that needs to be checked out. # The default value for the -B option is master. # The -b option will checkout the given branch. +# The -p option will push the newly created tags. # ################################################################################ # C O N F I G U R A T I O N @@ -75,6 +76,7 @@ usage() echo " -u -- Execute the upload script." echo " -B -- Automatically determine which branch to checkout." echo " -b <BRANCHNAME> -- Checkout the given branch." + echo " -p -- Push the newly created tags." echo "Where <VERSION> is:" echo " <VERSION> -- Version for the new tag name." @@ -173,6 +175,13 @@ create_tag() # $1 = path of repository, $2 = object fi } +push_tag_func() +{ + echo "Pushing tag ${VERSION} from ${1}/.git..." + + git --git-dir=${1}/.git push --quiet refs/tags/$VERSION + [ $? -ne 0 ] && fatal_error "Failed to push tag $VERSION from ${1}/.git." +} ################################################################################ # E X E C U T I O N S T A R T S H E R E ################################################################################ @@ -253,6 +262,10 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do option= ;; + p*) + PUSH_TAG=Yes + option=${option#p} + ;; *) usage ;; @@ -307,3 +320,8 @@ fi if [ -n "$upload" ]; then [ -f $TOOLSDIR/upload ] && $TOOLSDIR/upload $VERSION fi + +if [ -n "$PUSH_TAG" ]; then + push_tag_func $GIT + push_tag_func $GITRELEASEDIR +fi -- 2.13.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-devel mailing list Shorewall-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-devel