Commit 368cfb2be01cad6ba2b44aec361b660ba59ba3b0
1 parent
3ab0e8ad
Exists in
master
Adding OBS service file and pushtag script.
Showing
2 changed files
with
60 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,34 @@ |
1 | +#!/bin/bash | |
2 | +# | |
3 | +# https://help.github.com/articles/syncing-a-fork/ | |
4 | +# | |
5 | +# https://help.github.com/articles/configuring-a-remote-for-a-fork/ | |
6 | +# | |
7 | +# https://www.opentechguides.com/how-to/article/git/177/git-sync-repos.html | |
8 | +# | |
9 | +# Setup: | |
10 | +# | |
11 | +# git remote add github https://github.com/PerryWerneck/lib3270.git | |
12 | +# | |
13 | +# | |
14 | + | |
15 | +if [ -z ${1} ]; then | |
16 | + echo "Inform target tag" | |
17 | + exit -1 | |
18 | +fi | |
19 | + | |
20 | +git push | |
21 | + | |
22 | +git fetch origin | |
23 | +git checkout master | |
24 | +git merge origin/master | |
25 | + | |
26 | +git tag -f ${1} | |
27 | +git push -f --tags | |
28 | + | |
29 | +for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}') | |
30 | +do | |
31 | + echo "Updating ${repo} ..." | |
32 | + git push ${repo} -f --tags | |
33 | +done | |
34 | + | ... | ... |
... | ... | @@ -0,0 +1,26 @@ |
1 | +<services> | |
2 | + | |
3 | + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | |
4 | + <service name="tar_scm"> | |
5 | + <param name="changesgenerate">enable</param> | |
6 | + <param name="changesauthor">perry.werneck@gmail.com</param> | |
7 | + <param name="sslverify">disable</param> | |
8 | + <param name="versionformat">@PARENT_TAG@</param> | |
9 | + <param name="url">https://github.com/PerryWerneck/lib3270-mono-bindings.git</param> | |
10 | + <param name="scm">git</param> | |
11 | + </service> | |
12 | + | |
13 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
14 | + <service name="extract_file"> | |
15 | + <param name="archive">*.tar</param> | |
16 | + <param name="files">*/rpm/*.spec</param> | |
17 | + </service> | |
18 | + | |
19 | + <service name="recompress"> | |
20 | + <param name="file">*.tar</param> | |
21 | + <param name="compression">xz</param> | |
22 | + </service> | |
23 | + | |
24 | + <service name="set_version" /> | |
25 | + | |
26 | +</services> | ... | ... |