patch-bin_pt-mysql-summary 964 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-bin_pt-mysql-summary,v 1.8 2013/03/11 09:49:04 giovanni Exp $
  2. --- bin/pt-mysql-summary.orig Thu Feb 14 18:59:10 2013
  3. +++ bin/pt-mysql-summary Fri Feb 22 17:53:22 2013
  4. @@ -623,7 +623,7 @@ shorten() {
  5. }
  6. group_concat () {
  7. - sed -e '{H; $!d;}' -e 'x' -e 's/\n[[:space:]]*\([[:digit:]]*\)[[:space:]]*/, \1x/g' -e 's/[[:space:]][[:space:]]*/ /g' -e 's/, //' "${1}"
  8. + sed -e 'H; $!d;' -e 'x' -e 's/\n[[:space:]]*\([[:digit:]]*\)[[:space:]]*/, \1x/g' -e 's/[[:space:]][[:space:]]*/ /g' -e 's/, //' "${1}"
  9. }
  10. # ###########################################################################
  11. @@ -2421,7 +2421,7 @@ main() {
  12. # Execute the program if it was not included from another file.
  13. # This makes it possible to include without executing, and thus test.
  14. if [ "${0##*/}" = "$TOOL" ] \
  15. - || [ "${0##*/}" = "bash" -a "${_:-""}" = "$0" ]; then
  16. + || [ "${0##*/}" = "sh" -a "${_:-""}" = "$0" ]; then
  17. # Set up temporary dir.
  18. mk_tmpdir