File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,15 +48,32 @@ output_changes_file_version_marker() {
4848
4949
5050update_changes_file () {
51- local LAST_STABLE_RELEASE NEXT_STABLE_RELEASE
52-
53- LAST_STABLE_RELEASE=$( git describe --tags $( git rev-list --tags --max-count=1) )
54-
51+ LAST_STABLE_RELEASE=$( git describe --abbrev=0 --tags $( git rev-list --tags --max-count=1) )
5552 LAST_MAJOR_MINOR=" ${LAST_STABLE_RELEASE% .* } "
53+
54+ LAST_MAJOR=" ${LAST_STABLE_RELEASE%% .* } "
55+ LAST_MINOR=" ${LAST_MAJOR_MINOR#* .} "
5656 LAST_PATCH=" ${LAST_STABLE_RELEASE##* .} "
5757
58- NEXT_PATCH=$(( $LAST_PATCH + 1 ))
59- NEXT_STABLE_RELEASE=" ${LAST_MAJOR_MINOR} .${NEXT_PATCH} "
58+ case " ${PWD##*/ } " in
59+ Numix)
60+ NEXT_PATCH=$(( $LAST_PATCH + 1 ))
61+
62+ NEXT_STABLE_RELEASE=" ${LAST_MAJOR_MINOR} .${NEXT_PATCH} "
63+ ;;
64+
65+ Numix-Frost)
66+ LAST_MAJOR=$(( $LAST_MAJOR + 1 ))
67+ NEXT_STABLE_RELEASE=" ${LAST_MAJOR} .${LAST_MINOR} .${LAST_PATCH} "
68+ LAST_PATCH=$(( $LAST_PATCH - 1 ))
69+
70+ LAST_STABLE_RELEASE=" ${LAST_MAJOR} .${LAST_MINOR} .${LAST_PATCH} "
71+ ;;
72+
73+ * )
74+ echo ' Unknown directory!' && exit 1
75+ ;;
76+ esac
6077
6178 [[ -f CHANGES ]] && mv CHANGES CHANGES.old
6279
You can’t perform that action at this time.
0 commit comments