Commit b4dfd41b12d78dff9ef9aec6beded17bfd40054f
1 parent
4a33eaaf
Exists in
master
and in
79 other branches
add `diff` and `status` tools
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
Makefile
... | ... | @@ -15,8 +15,9 @@ all: |
15 | 15 | checkout_packages = $(patsubst %, %-checkout, $(packages)) |
16 | 16 | build_packages = $(patsubst %, %-build, $(packages)) |
17 | 17 | upload_packages = $(patsubst %, %-upload, $(packages)) |
18 | +diff_packages = $(patsubst %, %-diff, $(packages)) | |
18 | 19 | |
19 | -.PHONY: $(checkout_packages) $(build_packages) $(upload_packages) | |
20 | +.PHONY: $(checkout_packages) $(build_packages) $(upload_packages) $(diff_packages) | |
20 | 21 | |
21 | 22 | checkout-all: $(checkout_packages) |
22 | 23 | build-all: $(build_packages) |
... | ... | @@ -36,3 +37,11 @@ $(upload_packages): %-upload : % checkout-% |
36 | 37 | (cd $(obsdir)/$(OBSPROJECT)/$* && osc remove *) |
37 | 38 | cp $*/* $(obsdir)/$(OBSPROJECT)/$* |
38 | 39 | (cd $(obsdir)/$(OBSPROJECT)/$* && osc add * && osc commit -m "update $*") |
40 | + | |
41 | +$(diff_packages): %-diff : % | |
42 | + git diff --no-index $(obsdir)/$(OBSPROJECT)/$*/$*.spec $*/$*.spec || true | |
43 | + | |
44 | +diff: $(diff_packages) | |
45 | + | |
46 | +status st: | |
47 | + @$(MAKE) diff | diffstat -C | ... | ... |