pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Replaced while loop with for loop and in...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dfa26c126355
branches: trunk
changeset: 349548:dfa26c126355
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jul 10 07:08:21 2016 +0000
description:
Replaced while loop with for loop and initialized indentation.
diffstat:
mk/buildlink3/show-buildlink3.sh | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r a4a68f39931b -r dfa26c126355 mk/buildlink3/show-buildlink3.sh
--- a/mk/buildlink3/show-buildlink3.sh Sun Jul 10 06:36:40 2016 +0000
+++ b/mk/buildlink3/show-buildlink3.sh Sun Jul 10 07:08:21 2016 +0000
@@ -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 @@
indentation="${indentation} "
;;
esac
- shift
done
Home |
Main Index |
Thread Index |
Old Index