-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
36 lines (30 loc) · 845 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.ONESHELL:
.SHELL := bash
.SHELLFLAGS := -exc
include gamescope.mk
export VERSION := $(GAMESCOPE_VERSION)-$(DEB_RELEASE)
export [email protected]
.PHONY: changelog
changelog:
(
cd ubuntu_22.04/03-package
dch -v $${VERSION:?} -c changelog
)
.PHONY: release
release:
(
cd ubuntu_22.04/03-package
dch -c changelog --distribution jammy --release
)
git add -p
git commit -m "v$${VERSION:?}"
git tag -a "v$${VERSION:?}" -m "v$${VERSION:?}"
.PHONY: github_release
github_release:
git name-rev --name-only --tags --refs v$${VERSION:?} --no-undefined HEAD || exit 1
dpkg-parsechangelog -l ubuntu_22.04/03-package/changelog > gh_changelog
gh release create "v$${VERSION:?}" \
--title "v$${VERSION:?}" \
--notes-file gh_changelog \
--draft \
ubuntu_22.04/03-package/gamescope_$${VERSION:?}_amd64.deb