aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-19 18:32:19 -0700
committerGraydon Hoare <[email protected]>2011-03-19 18:34:42 -0700
commit3e7ff65201c44f7f7bcca112bc8a7c6b245fd94d (patch)
treeaf73e0ff250c48b3263511f02cc42408efd17c2f /configure
parentSeparate scan for commands used during configure. (diff)
downloadrust-3e7ff65201c44f7f7bcca112bc8a7c6b245fd94d.tar.xz
rust-3e7ff65201c44f7f7bcca112bc8a7c6b245fd94d.zip
Truncate long lines in configure output.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index c8819426..faae45c2 100755
--- a/configure
+++ b/configure
@@ -43,7 +43,13 @@ make_test_subdirs() {
putvar() {
local T
eval T=\$$1
- printf "%-20s := %s\n" $1 "$T"
+ eval TLEN=\${#$1}
+ if [ $TLEN -gt 35 ]
+ then
+ printf "configure: %-20s := %.35s ...\n" $1 "$T"
+ else
+ printf "configure: %-20s := %s\n" $1 "$T"
+ fi
printf "%-20s := %s\n" $1 "$T" >>config.mk
}