diff options
author | rillig <rillig@pkgsrc.org> | 2016-07-10 07:08:21 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2016-07-10 07:08:21 +0000 |
commit | 356e683bfca345f81c8688725284909c82991206 (patch) | |
tree | e503ee8bd1e9613db6f00d74dbd9121059591f12 | |
parent | 9022047b45bfba7144eb655c3b65152f97c2c834 (diff) | |
download | pkgsrc-356e683bfca345f81c8688725284909c82991206.tar.gz |
Replaced while loop with for loop and initialized indentation.
-rw-r--r-- | mk/buildlink3/show-buildlink3.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mk/buildlink3/show-buildlink3.sh b/mk/buildlink3/show-buildlink3.sh index aa1b430f76b..11a29fdd89c 100644 --- a/mk/buildlink3/show-buildlink3.sh +++ b/mk/buildlink3/show-buildlink3.sh @@ -1,13 +1,13 @@ #!/bin/sh # -# $NetBSD: show-buildlink3.sh,v 1.3 2009/10/05 02:40:06 obache Exp $ +# $NetBSD: show-buildlink3.sh,v 1.4 2016/07/10 07:08:21 rillig Exp $ # # This script is a helper for the show-buildlink3 target and outputs # the arguments as tree. # -while test $# -gt 0; do - pkg="$1" +indentation="" +for pkg in "$@"; do case $pkg in -*) indentation=${indentation# } @@ -17,5 +17,4 @@ while test $# -gt 0; do indentation="${indentation} " ;; esac - shift done |