Mercurial > evolve
comparison tests/test-check-tag.t @ 6668:02f8c88f3d59
tests: replace obsolescent egrep with grep -E
This avoids the warning “egrep: warning: egrep is obsolescent; using grep -E”
on my Arch Linux system.
This is similar to 7e5be4a7cda7 in core.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 02 Feb 2024 00:09:51 +0100 |
parents | 279c01842eca |
children | aa51f19c71f6 |
comparison
equal
deleted
inserted
replaced
6667:31e157a5cfe2 | 6668:02f8c88f3d59 |
---|---|
28 > fi | 28 > fi |
29 > entry=`hg cat --rev $node CHANGELOG | fgrep "$tags"` | 29 > entry=`hg cat --rev $node CHANGELOG | fgrep "$tags"` |
30 > if [ -z "$entry" ]; then | 30 > if [ -z "$entry" ]; then |
31 > echo "Revision $node has no CHANGELOG entry for $tags" | 31 > echo "Revision $node has no CHANGELOG entry for $tags" |
32 > fi | 32 > fi |
33 > if echo "$entry" | egrep -vq ' -- [0-9]{4}-[0-9]{2}-[0-9]{2}'; then | 33 > if echo "$entry" | grep -E -vq ' -- [0-9]{4}-[0-9]{2}-[0-9]{2}'; then |
34 > echo "CHANGELOG entry for $tags should have a date in YYYY-MM-DD format: $entry" | 34 > echo "CHANGELOG entry for $tags should have a date in YYYY-MM-DD format: $entry" |
35 > fi | 35 > fi |
36 > entry=`hg cat --rev $node debian/changelog | fgrep "$tags"` | 36 > entry=`hg cat --rev $node debian/changelog | fgrep "$tags"` |
37 > if [ -z "$entry" ]; then | 37 > if [ -z "$entry" ]; then |
38 > echo "Revision $node has no debian/changelog entry for $tags" | 38 > echo "Revision $node has no debian/changelog entry for $tags" |