blob: 11a29fdd89c115e3c7c562cc115a22614ea894b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
#
# $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.
#
indentation=""
for pkg in "$@"; do
case $pkg in
-*)
indentation=${indentation# }
;;
*)
echo "${indentation}${pkg}"
indentation="${indentation} "
;;
esac
done
|