add task to makefile for generating/updating CHANGES file before releases
parent
44d407ec04
commit
040b869372
12
Makefile
12
Makefile
|
@ -8,6 +8,7 @@ RES_DIR320=gtk-3.20
|
||||||
SCSS_DIR320=$(RES_DIR320)/scss
|
SCSS_DIR320=$(RES_DIR320)/scss
|
||||||
DIST_DIR320=$(RES_DIR320)/dist
|
DIST_DIR320=$(RES_DIR320)/dist
|
||||||
INSTALL_DIR=$(DESTDIR)/usr/share/themes/Numix
|
INSTALL_DIR=$(DESTDIR)/usr/share/themes/Numix
|
||||||
|
LATEST_STABLE_RELEASE=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||||
|
|
||||||
all: clean gresource
|
all: clean gresource
|
||||||
|
|
||||||
|
@ -55,6 +56,16 @@ install: all
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf $(INSTALL_DIR)
|
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: all
|
||||||
.PHONY: css
|
.PHONY: css
|
||||||
.PHONY: watch
|
.PHONY: watch
|
||||||
|
@ -62,6 +73,7 @@ uninstall:
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
|
.PHONY: changes
|
||||||
|
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue