File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ rpm-v2-arm:
73
73
--define " buildarch aarch64" --define " dist .amzn2" \
74
74
--target aarch64 -bb packaging/rpm/mackerel-check-plugins-v2.spec
75
75
76
+ NEXT_VERSION := $(shell grep -o -e "[0-9]\+.[0-9]\+.[0-9]\+-[0-9]" "packaging/deb-v2/debian/changelog" | head -1 | sed 's/-.* $$//')
77
+
76
78
.PHONY : deb
77
79
deb : deb-v2-x86 deb-v2-arm
78
80
@@ -81,15 +83,15 @@ deb-v2-x86:
81
83
git clean -f -d ./packaging
82
84
make build/mackerel-check GOOS=linux GOARCH=amd64
83
85
cp build/mackerel-check packaging/deb-v2/debian/
84
- cp -f packaging/dummy-empty.tar.gz packaging/mackerel-check-plugins_${VERSION } .orig.tar.gz
86
+ cp -f packaging/dummy-empty.tar.gz packaging/mackerel-check-plugins_${NEXT_VERSION } .orig.tar.gz
85
87
cd packaging/deb-v2 && debuild --no-tgz-check -rfakeroot -uc -us
86
88
87
89
.PHONY : deb-v2-arm
88
90
deb-v2-arm :
89
91
git clean -f -d ./packaging
90
92
make build/mackerel-check GOOS=linux GOARCH=arm64
91
93
cp build/mackerel-check packaging/deb-v2/debian/
92
- cp -f packaging/dummy-empty.tar.gz packaging/mackerel-check-plugins_${VERSION } .orig.tar.gz
94
+ cp -f packaging/dummy-empty.tar.gz packaging/mackerel-check-plugins_${NEXT_VERSION } .orig.tar.gz
93
95
cd packaging/deb-v2 && debuild --no-tgz-check -rfakeroot -uc -us -aarm64
94
96
95
97
.PHONY : clean
You can’t perform that action at this time.
0 commit comments