Skip to content

Commit da48b64

Browse files
committed
clgen: More precise match agains FORMAT_VERSION
Adapts to rust-lang/rust#142601
1 parent d7f859a commit da48b64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clgen.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ col2() {
1010
col6() {
1111
awk '{print $6}'
1212
}
13-
grepor() {
14-
grep $1 || true
15-
}
1613

1714
# Check we have two arguments, and assign them to variables
1815

@@ -34,7 +31,7 @@ fi
3431
mv tmp Cargo.toml
3532

3633
date=$(date -u +'%Y-%m-%d')
37-
format_version=$(cat src/lib.rs | grepor FORMAT_VERSION | col6 | sd ";" "")
34+
format_version=$(cat src/lib.rs | grep 'FORMAT_VERSION: u32 =' | col6 | sd ";" "")
3835
rustc_commit=$(cat COMMIT.txt)
3936

4037
# We do a shuffling dance to append the new version to the top of the changelog

0 commit comments

Comments
 (0)