diff options
author | tron <tron@pkgsrc.org> | 2011-03-22 08:39:30 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2011-03-22 08:39:30 +0000 |
commit | b6b0db34bc8fc94e0c6c7dccf185723accacdada (patch) | |
tree | 119e6524967e69036e466c478eb02e3941a9ace7 /bootstrap | |
parent | fe5f56f49f964d9b9b451c3e7a34c17d157918a3 (diff) | |
download | pkgsrc-b6b0db34bc8fc94e0c6c7dccf185723accacdada.tar.gz |
Use "-n" instead of "! -z".
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 2d5983c5ff5..5acdb218e62 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.163 2011/01/23 19:07:25 agc Exp $ +# $NetBSD: bootstrap,v 1.164 2011/03/22 08:39:30 tron Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -229,7 +229,7 @@ opsys_finish() { case "$opsys" in IRIX) - if [ ! -z "$imakeopts" ]; then + if [ -n "$imakeopts" ]; then echo "IMAKEOPTS+= $imakeopts" >> ${TARGET_MKCONF} fi if [ `uname -r` -lt 6 ]; then @@ -883,7 +883,7 @@ if [ "$set_opsys" = "yes" ]; then echo "OPSYS= $opsys" >> ${TARGET_MKCONF} fi -if [ ! -z "$abi" ]; then +if [ -n "$abi" ]; then echo "ABI= $abi" >> ${TARGET_MKCONF} fi if [ "$compiler" != "" ]; then @@ -1167,9 +1167,9 @@ echo "" echo "$hline" echo "" -[ ! -z "${binary_kit}" ] && mkbinarykit_tar -[ ! -z "${binary_gzip_kit}" ] && mkbinarykit_tgz -[ ! -z "${binary_macpkg}" ] && mkbinarykit_macpkg +[ -n "${binary_kit}" ] && mkbinarykit_tar +[ -n "${binary_gzip_kit}" ] && mkbinarykit_tgz +[ -n "${binary_macpkg}" ] && mkbinarykit_macpkg echo_msg "bootstrap started: $build_start" echo_msg "bootstrap ended: `date`" |