浏览代码

Allow overriding bump size (MKIT_BUMPSIZE)

If for some reason, user wants to skip a version or two, this will
override version bumping in vbump_* and some checks new and tag
creation in release_*.
Alois Mahdal 8 年前
父节点
当前提交
1630a2752c
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. 3
    3
      src/include/release.sh
  2. 5
    0
      src/make.skel

+ 3
- 3
src/include/release.sh 查看文件

@@ -16,9 +16,9 @@ _bump_version() {
16 16
     local oldy=${tmpy#*.}
17 17
     local new=""
18 18
     case $rlevel in
19
-        x) new="$((oldx+1)).0.0"            ;;
20
-        y) new="$oldx.$((oldy+1)).0"        ;;
21
-        z) new="$oldx.$oldy.$((oldz+1))"    ;;
19
+        x) new="$((oldx+MKIT_BUMPSIZE)).0.0"            ;;
20
+        y) new="$oldx.$((oldy+MKIT_BUMPSIZE)).0"        ;;
21
+        z) new="$oldx.$oldy.$((oldz+MKIT_BUMPSIZE))"    ;;
22 22
         *) die "invalid release level: $1"  ;;
23 23
     esac
24 24
     echo "$new"

+ 5
- 0
src/make.skel 查看文件

@@ -7,6 +7,11 @@ die() {
7 7
 }
8 8
 
9 9
 
10
+#
11
+# Bump size (for vbump_? and release_?)
12
+#
13
+MKIT_BUMPSIZE=${MKIT_BUMPSIZE:-1}
14
+
10 15
 #
11 16
 # Debug mode (true|false)
12 17
 #