add task to makefile for generating/updating CHANGES file before releases

pull/568/head
Dustin Falgout 2016-09-18 02:57:43 -05:00
parent 44d407ec04
commit 040b869372
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,7 @@ RES_DIR320=gtk-3.20
SCSS_DIR320=$(RES_DIR320)/scss
DIST_DIR320=$(RES_DIR320)/dist
INSTALL_DIR=$(DESTDIR)/usr/share/themes/Numix
LATEST_STABLE_RELEASE=$(git describe --tags $(git rev-list --tags --max-count=1))
all: clean gresource
@ -55,6 +56,16 @@ install: all
uninstall:
rm -rf $(INSTALL_DIR)
changes:
[ -f CHANGES ] && mv CHANGES CHANGES.old
git log \
--pretty=format:"[%ai] %<(69,trunc) %s %><(15) %aN {%h}" \
--cherry-pick "${LATEST_STABLE_RELEASE}...HEAD" > CHANGES
[ -f CHANGES.old ] && cat CHANGES.old >> CHANGES && rm CHANGES.old
git add CHANGES
git commit -m 'RELEASE PREP :: Update CHANGES file.'
git push
.PHONY: all
.PHONY: css
.PHONY: watch
@ -62,6 +73,7 @@ uninstall:
.PHONY: clean
.PHONY: install
.PHONY: uninstall
.PHONY: changes
.DEFAULT_GOAL := all