mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-01 18:25:59 +00:00

* 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>
28 lines
373 B
Bash
Executable File
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 $?
|