Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 415 Bytes
PRJ=openSUSE:Tools
PKG=osc-source_validator
all:
package:
@if test -d $(PKG); then cd $(PKG) && osc up && cd -; else osc co -c $(PRJ) $(PKG); fi
@./mkchanges | tee $(PKG)/.changes
@test ! -s $(PKG)/.changes || git push
@test -z "`git rev-list remotes/origin/master..master`" || { echo "unpushed changes"; exit 1; }
@f=(*bz2); test -z "$f" || /bin/rm -vi *.bz2
@./mktar
@mv *bz2 $(PKG)
.PHONY: all package