|
6 | 6 |
|
7 | 7 | # Notes:
|
8 | 8 | # - Checkout to the appropriate branch beforehand
|
9 |
| -# master - for major release |
| 9 | +# main - for major release |
10 | 10 | # ndctl-xx.y - for fixup release
|
11 | 11 | # This is important for generating the shortlog
|
12 | 12 | # - Add a temporary commit that updates the libtool versions as needed.
|
@@ -50,9 +50,9 @@ check_branch()
|
50 | 50 | err "expected an ndctl-xx.y branch for fixup release"
|
51 | 51 | fi
|
52 | 52 | else
|
53 |
| - # major release, expect master branch |
54 |
| - if ! grep -Eq "^master$" <<< "$cur"; then |
55 |
| - err "expected master branch for a major release" |
| 53 | + # major release, expect main branch |
| 54 | + if ! grep -Eq "^main$" <<< "$cur"; then |
| 55 | + err "expected main branch for a major release" |
56 | 56 | fi
|
57 | 57 | fi
|
58 | 58 | if ! git diff-index --quiet HEAD --; then
|
@@ -99,21 +99,21 @@ gen_lists()
|
99 | 99 | c_count=$(git log --pretty=format:"%s" "$range" | wc -l)
|
100 | 100 | }
|
101 | 101 |
|
102 |
| -# Check libtool versions in Makefile.am.in |
| 102 | +# Check libtool versions in meson.build |
103 | 103 | # $1: lib name (currently libndctl, libdaxctl, or libcxl)
|
104 | 104 | check_libtool_vers()
|
105 | 105 | {
|
106 | 106 | local lib="$1"
|
107 | 107 | local lib_u="${lib^^}"
|
108 | 108 | local libdir="${lib##lib}/lib/"
|
109 | 109 | local symfile="${libdir}/${lib}.sym"
|
110 |
| - local last_cur=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_CURRENT" | cut -d'=' -f2) |
111 |
| - local last_rev=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_REVISION" | cut -d'=' -f2) |
112 |
| - local last_age=$(git show $last_ref:Makefile.am.in | grep -E "^${lib_u}_AGE" | cut -d'=' -f2) |
| 110 | + local last_cur=$(git show $last_ref:meson.build | grep -E "^${lib_u}_CURRENT" | cut -d'=' -f2) |
| 111 | + local last_rev=$(git show $last_ref:meson.build | grep -E "^${lib_u}_REVISION" | cut -d'=' -f2) |
| 112 | + local last_age=$(git show $last_ref:meson.build | grep -E "^${lib_u}_AGE" | cut -d'=' -f2) |
113 | 113 | local last_soname=$((last_cur - last_age))
|
114 |
| - local next_cur=$(git show HEAD:Makefile.am.in | grep -E "^${lib_u}_CURRENT" | cut -d'=' -f2) |
115 |
| - local next_rev=$(git show HEAD:Makefile.am.in | grep -E "^${lib_u}_REVISION" | cut -d'=' -f2) |
116 |
| - local next_age=$(git show HEAD:Makefile.am.in | grep -E "^${lib_u}_AGE" | cut -d'=' -f2) |
| 114 | + local next_cur=$(git show HEAD:meson.build | grep -E "^${lib_u}_CURRENT" | cut -d'=' -f2) |
| 115 | + local next_rev=$(git show HEAD:meson.build | grep -E "^${lib_u}_REVISION" | cut -d'=' -f2) |
| 116 | + local next_age=$(git show HEAD:meson.build | grep -E "^${lib_u}_AGE" | cut -d'=' -f2) |
117 | 117 | local next_soname=$((next_cur - next_age))
|
118 | 118 | local soname_diff=$((next_soname - last_soname))
|
119 | 119 |
|
@@ -195,6 +195,6 @@ sed -i -e "s/DEF_VER=[0-9]\+.*/DEF_VER=${next_ref#v}/" git-version
|
195 | 195 | echo "Ready to release ndctl-$next_ref with $c_count new commits."
|
196 | 196 | echo "Add git-version to the top commit to get the updated version."
|
197 | 197 | echo "Use release/commits and release/shortlog to compose the release message"
|
198 |
| -echo "The release commit typically contains the Makefile.am.in libtool version" |
| 198 | +echo "The release commit typically contains the meson.build libtool version" |
199 | 199 | echo "update, and the git-version update."
|
200 | 200 | echo "Finally, ensure the release commit as well as the tag are PGP signed."
|
0 commit comments