Files
percona-toolkit/util/log-entries
Viktor Szépe 2bd40d8c39 Remove trailing spaces (#665)
* Remove trailing spaces

* PR-665 -  Remove trailing spaces

- Updated not stable test t/pt-online-schema-change/preserve_triggers.t
- Updated utilities in bin directory

* PR-665 -  Remove trailing spaces

- Fixed typos

* PR-665 -  Remove trailing spaces

- Fixed typos

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
2023-09-06 01:15:12 +03:00

28 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
version=$1
if [ -z "$version" ]; then
echo "Usage: log-entries VERSION" >&2
echo "Example: cat Changelog | log-entries 1.0.1" >&2
exit 1
fi
awk "
BEGIN {
start = \"^v\" \"$version\"
}
\$0 ~ start {
while ( getline ) {
if ( \$0 ~ /^v[0-9]/ )
exit
if ( \$0 ~ /^\$/ )
continue
print
}
}
"
exit $?