Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
PREFIX = /usr/local
SHAREDIR = $(PREFIX)/share/archlinux
BINDIR = $(PREFIX)/bin
REPO = contrib
TAG = $(shell git describe --abbrev=0 --tags)

BASH_SCRIPTS = \
admin/checkservices \
Expand Down Expand Up @@ -37,17 +35,12 @@ uninstall:
done;
rmdir $(DESTDIR)$(BINDIR)

.PHONY: tag
tag:
git describe --exact-match >/dev/null 2>&1 || git tag -s $(shell date +%Y%m%d)
git push --tags

.PHONY: release
release:
mkdir -p releases
git archive --prefix=${REPO}-${TAG}/ -o releases/${REPO}-${TAG}.tar.gz ${TAG};
gpg --detach-sign -o releases/${REPO}-${TAG}.tar.gz.sig releases/${REPO}-${TAG}.tar.gz
hub release create -m "Release: ${TAG}" -a releases/${REPO}-${TAG}.tar.gz.sig -a releases/${REPO}-${TAG}.tar.gz ${TAG}
git describe --exact-match >/dev/null 2>&1 && { echo "Last commit is already tagged" >&2; exit 1; }
git tag -s $(shell date +%Y%m%d)
git push --tags
gh release create --generate-notes $(shell date +%Y%m%d)

check: check-bash check-python

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ years so they can be curated, cleaned up and maybe become part of the `devtools`
package.

### Contribution guidelines

- Some documentation is needed. This can be comments in the top of the file or
a traditional help command.

- One ACK for each Pull-Request is needed

- Please add [SPDX license header](https://spdx.org/ids-how)

### Release process

Run `make release` to push a signed git tag and create a release with default changelog (requires `gh`).