openbsd-ports/databases/percona-toolkit/patches/patch-bin_pt-mysql-summary

22 lines
952 B
Plaintext

$OpenBSD: patch-bin_pt-mysql-summary,v 1.7 2013/01/11 11:21:26 giovanni Exp $
--- bin/pt-mysql-summary.orig Tue Jan 8 22:49:57 2013
+++ bin/pt-mysql-summary Fri Jan 11 12:17:27 2013
@@ -614,7 +614,7 @@ shorten() {
}
group_concat () {
- sed -e '{H; $!d;}' -e 'x' -e 's/\n[[:space:]]*\([[:digit:]]*\)[[:space:]]*/, \1x/g' -e 's/[[:space:]][[:space:]]*/ /g' -e 's/, //' "${1}"
+ sed -e 'H; $!d;' -e 'x' -e 's/\n[[:space:]]*\([[:digit:]]*\)[[:space:]]*/, \1x/g' -e 's/[[:space:]][[:space:]]*/ /g' -e 's/, //' "${1}"
}
# ###########################################################################
@@ -2412,7 +2412,7 @@ main() {
# Execute the program if it was not included from another file.
# This makes it possible to include without executing, and thus test.
if [ "${0##*/}" = "$TOOL" ] \
- || [ "${0##*/}" = "bash" -a "$_" = "$0" ]; then
+ || [ "${0##*/}" = "sh" -a "$_" = "$0" ]; then
# Set up temporary dir.
mk_tmpdir