瀏覽代碼

Add check on version bump

In mkit's world, last change before release (ie. the commit that gets
tagged) must be nothing but version bump in "config.mk"
Alois Mahdal 10 年之前
父節點
當前提交
36adafec09
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      utils/mkit/include/release.sh

+ 3
- 0
utils/mkit/include/release.sh 查看文件

38
     local newtag=v$newver
38
     local newtag=v$newver
39
     local higher=$(echo -e "$oldtag\n$newtag" | sort -V | tail -n1)
39
     local higher=$(echo -e "$oldtag\n$newtag" | sort -V | tail -n1)
40
 
40
 
41
+    test "$lastfile" = config.mk \
42
+     || die "last change must be version bump in config.mk"
43
+
41
     test -n "$lasttag" \
44
     test -n "$lasttag" \
42
      || die "cannot find last tag"
45
      || die "cannot find last tag"
43
 
46