From 368cfb2be01cad6ba2b44aec361b660ba59ba3b0 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 22 Apr 2019 10:40:27 -0300 Subject: [PATCH] Adding OBS service file and pushtag script. --- pushtag.sh | 34 ++++++++++++++++++++++++++++++++++ rpm/_service | 26 ++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-) create mode 100755 pushtag.sh create mode 100644 rpm/_service diff --git a/pushtag.sh b/pushtag.sh new file mode 100755 index 0000000..11eaf15 --- /dev/null +++ b/pushtag.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# https://help.github.com/articles/syncing-a-fork/ +# +# https://help.github.com/articles/configuring-a-remote-for-a-fork/ +# +# https://www.opentechguides.com/how-to/article/git/177/git-sync-repos.html +# +# Setup: +# +# git remote add github https://github.com/PerryWerneck/lib3270.git +# +# + +if [ -z ${1} ]; then + echo "Inform target tag" + exit -1 +fi + +git push + +git fetch origin +git checkout master +git merge origin/master + +git tag -f ${1} +git push -f --tags + +for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}') +do + echo "Updating ${repo} ..." + git push ${repo} -f --tags +done + diff --git a/rpm/_service b/rpm/_service new file mode 100644 index 0000000..1671fd3 --- /dev/null +++ b/rpm/_service @@ -0,0 +1,26 @@ + + + + + enable + perry.werneck@gmail.com + disable + @PARENT_TAG@ + https://github.com/PerryWerneck/lib3270-mono-bindings.git + git + + + + + *.tar + */rpm/*.spec + + + + *.tar + xz + + + + + -- libgit2 0.21.2