summaryrefslogtreecommitdiff
path: root/mk/buildlink3/show-buildlink3.sh
blob: 1fa109ffdeadbd80d9a0a382fa74d5ca2f2d4f4a (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.2 2009/03/20 19:25:01 joerg 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=${indendation#    }
		;;
	*)
		echo "${indentation}${pkg}"
		indentation="${indentation}    "
		;;
	esac
	shift
done