File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,3 +27,7 @@ indent_size = 2
2727[Makefile ]
2828indent_style = tab
2929indent_size = 4
30+
31+ [* .sh ]
32+ indent_style = tab
33+ indent_size = 4
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RES_DIR320=gtk-3.20
88SCSS_DIR320 =$(RES_DIR320 ) /scss
99DIST_DIR320 =$(RES_DIR320 ) /dist
1010INSTALL_DIR =$(DESTDIR ) /usr/share/themes/Numix
11- LATEST_STABLE_RELEASE = $( git describe --tags $( git rev-list --tags --max-count=1 ) )
11+ UTILS =scripts/utils.sh
1212
1313all : clean gresource
1414
@@ -57,14 +57,8 @@ uninstall:
5757 rm -rf $(INSTALL_DIR )
5858
5959changes :
60- [ -f CHANGES ] && mv CHANGES CHANGES.old
61- git log \
62- --pretty=format:" [%ai] %<(69,trunc) %s %><(15) %aN {%h}" \
63- --cherry-pick " ${LATEST_STABLE_RELEASE} ...HEAD" > CHANGES
64- [ -f CHANGES.old ] && cat CHANGES.old >> CHANGES && rm CHANGES.old
65- git add CHANGES
66- git commit -m ' RELEASE PREP :: Update CHANGES file.'
67- git push
60+ $(UTILS ) changes
61+
6862
6963.PHONY : all
7064.PHONY : css
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ update_changes_file () {
4+ local LATEST_STABLE_RELEASE
5+ LATEST_STABLE_RELEASE=$( git describe --tags $( git rev-list --tags --max-count=1) )
6+
7+ [[ -f CHANGES ]] && mv CHANGES CHANGES.old
8+
9+ { git log \
10+ --pretty=format:" [%ai] %<(69,trunc) %s %><(15) %aN {%h}" \
11+ --cherry-pick " ${LATEST_STABLE_RELEASE} ...HEAD" ; } > CHANGES
12+
13+ [[ -f CHANGES.old ]] && cat CHANGES.old >> CHANGES && rm CHANGES.old
14+
15+ git add CHANGES
16+ git commit -m ' RELEASE PREP :: Update CHANGES file.'
17+ git push
18+ }
19+
20+
21+ case $1 in
22+ changes)
23+ update_changes_file
24+ exit $?
25+ ;;
26+
27+ * )
28+ exit 0
29+ ;;
30+ esac
You can’t perform that action at this time.
0 commit comments