We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67a78b commit 03763f4Copy full SHA for 03763f4
1 file changed
bin/mkrelease
@@ -153,13 +153,13 @@ note " $DIR"
153
REPO=${REPO%/} # remove trailing slash
154
SRC=${SRC#/} # remove leading slash
155
156
-MAJOR=${VER%.*}
157
-MINOR=${VER#*.}
158
-MINOR=${MINOR##0}
159
-VER="$(printf %d.%02d $MAJOR $MINOR)"
160
-NEXT=$(( $MINOR + 1 ))
161
-DEV="$(printf %d.%02d-dev $MAJOR $NEXT)"
162
-
+MAJOR=${VER%%.*}
+REST=${VER#*.}
+MINOR=${REST%%.*}
+CHANGE=${REST#*.}
+VER="$(printf %d.%d.%d $MAJOR $MINOR $CHANGE)"
+NEXT=$(( $CHANGE + 1 ))
+DEV="$(printf %d.%d.%d-dev $MAJOR $MINOR $NEXT)"
163
164
note "Checking that changelog information is available"
165
changes=$( sed -n "/^ietfdb ($VER.*)/,/^ -- /p" changelog )
0 commit comments