Commit e0ae2b33cb493812deb9707a6fe6ae1dbf33dd2e
1 parent
935a2ae1
Exists in
master
and in
79 other branches
Automate uploads to OBS
Showing
2 changed files
with
18 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +/obs | ... | ... |
| ... | ... | @@ -0,0 +1,17 @@ |
| 1 | +all: | |
| 2 | + @echo "Usage:" | |
| 3 | + @echo | |
| 4 | + @echo 'make gitlab # uploads gitlab.spec to obs' | |
| 5 | + @echo 'make gitlab-shell # uploads gitlab-shell.spec to obs' | |
| 6 | + | |
| 7 | +gitlab gitlab-shell: | |
| 8 | + $(MAKE) upload PACKAGE=$@ | |
| 9 | + | |
| 10 | +obs_project = isv:spb:gitlab | |
| 11 | + | |
| 12 | +upload: | |
| 13 | + test -n "$(PACKAGE)" | |
| 14 | + mkdir -p obs | |
| 15 | + test -d obs/$(obs_project)/$(PACKAGE) || (cd obs && osc checkout $(obs_project) $(PACKAGE)) | |
| 16 | + cp $(PACKAGE).spec obs/isv:spb:gitlab/$(PACKAGE)/ | |
| 17 | + cd obs/isv:spb:gitlab/$(PACKAGE) && osc commit -m 'Update $(PACKAGE)' | ... | ... |