pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/buildlink3
Module Name: pkgsrc
Committed By: rillig
Date: Sun Jul 10 07:08:21 UTC 2016
Modified Files:
pkgsrc/mk/buildlink3: show-buildlink3.sh
Log Message:
Replaced while loop with for loop and initialized indentation.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/buildlink3/show-buildlink3.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/buildlink3/show-buildlink3.sh
diff -u pkgsrc/mk/buildlink3/show-buildlink3.sh:1.3 pkgsrc/mk/buildlink3/show-buildlink3.sh:1.4
--- pkgsrc/mk/buildlink3/show-buildlink3.sh:1.3 Mon Oct 5 02:40:06 2009
+++ pkgsrc/mk/buildlink3/show-buildlink3.sh Sun Jul 10 07:08:21 2016
@@ -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
Home |
Main Index |
Thread Index |
Old Index