This repository has been archived by the owner on May 22, 2019. It is now read-only.
forked from numixproject/numix-gtk-theme
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add task to makefile for generating/updating CHANGES file before rele…
…ases (cherry picked from commit 0e6c45b)
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,7 @@ indent_size = 2 | |
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.sh] | ||
indent_style = tab | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
update_changes_file() { | ||
local LATEST_STABLE_RELEASE | ||
LATEST_STABLE_RELEASE=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
|
||
[[ -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 | ||
} | ||
|
||
|
||
case $1 in | ||
changes) | ||
update_changes_file | ||
exit $? | ||
;; | ||
|
||
*) | ||
exit 0 | ||
;; | ||
esac |