summaryrefslogtreecommitdiff
path: root/mk/buildlink3/show-buildlink3.sh
blob: aa1b430f76b0c7de88700b846d97b37fce585ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# $NetBSD: show-buildlink3.sh,v 1.3 2009/10/05 02:40:06 obache Exp $
#
# This script is a helper for the show-buildlink3 target and outputs
# the arguments as tree.
#

while test $# -gt 0; do
	pkg="$1"
	case $pkg in
	-*)
		indentation=${indentation#    }
		;;
	*)
		echo "${indentation}${pkg}"
		indentation="${indentation}    "
		;;
	esac
	shift
done