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 | 1f196ce2b1b153828fb4fa61e2e535c7a0fb6e34 (patch) | |
tree | d756475612a88bbc239d9b8fa51ba1201d79b8e6 /mk/buildlink3 | |
parent | 2fbcc95a55c416daae420981dcd7bfaf16992e93 (diff) | |
download | pkgsrc-1f196ce2b1b153828fb4fa61e2e535c7a0fb6e34.tar.gz |
Replaced while loop with for loop and initialized indentation.
Diffstat (limited to 'mk/buildlink3')
-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 |