diff options
author | rillig <rillig> | 2016-07-10 07:08:21 +0000 |
---|---|---|
committer | rillig <rillig> | 2016-07-10 07:08:21 +0000 |
commit | c8df1159ac0a207bf3ef45836071b65a44f13e30 (patch) | |
tree | e503ee8bd1e9613db6f00d74dbd9121059591f12 /mk | |
parent | 0a8116cb3afdf21c43040e18edf2b3b67ec0b588 (diff) | |
download | pkgsrc-c8df1159ac0a207bf3ef45836071b65a44f13e30.tar.gz |
Replaced while loop with for loop and initialized indentation.
Diffstat (limited to 'mk')
-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 |