Преглед изворни кода

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 пре 9 година
родитељ
комит
36adafec09
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3
    0
      utils/mkit/include/release.sh

+ 3
- 0
utils/mkit/include/release.sh Прегледај датотеку

@@ -38,6 +38,9 @@ __release() {
38 38
     local newtag=v$newver
39 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 44
     test -n "$lasttag" \
42 45
      || die "cannot find last tag"
43 46