ruby-changes:56026
From: Nobuyoshi <ko1@a...>
Date: Thu, 6 Jun 2019 12:04:52 +0900 (JST)
Subject: [ruby-changes:56026] Nobuyoshi Nakada: d046fe9262 (trunk): configure.ac: utilize wide columns for summary
https://git.ruby-lang.org/ruby.git/commit/?id=d046fe9262 From d046fe926273d0137f2d5cdf2dedfcfeeb98189b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 6 Jun 2019 12:03:19 +0900 Subject: configure.ac: utilize wide columns for summary diff --git a/configure.ac b/configure.ac index 34026ce..7f0a14b 100644 --- a/configure.ac +++ b/configure.ac @@ -3993,12 +3993,13 @@ AS_IF([test "$silent" = yes], [], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L3993 AS_IF([${FOLD+:} false], [], [ AS_IF([test "`echo abcdefg hijklmno | fold -s -w10 | sed 1d`" = hijklmno], [FOLD="fold"], [FOLD=]) ]) +fold_width=`expr $COLUMNS - 30 2>/dev/null` || fold_width=50 AS_REQUIRE_SHELL_FN([config_summary], [AS_FUNCTION_DESCRIBE([config_summary], [NAME, VAL], [configuration summary])], [AS_IF([test -z "$2"], [], [ AS_ECHO_N([" * $1: "]) | dd bs=1 count=26 2>/dev/null AS_IF([test "$FOLD"], [ - echo "$2" | fold -s -w50 | + echo "$2" | fold -s -w$fold_width | sed '1!s/^/ /;$!s/$/\\/' ], [echo "$2"]) ])] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/