blob: 1d2255158d262831439a63b4ccaef0870180dbfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
#
# $NetBSD: show-buildlink3.sh,v 1.1 2006/07/08 23:11:17 jlam Exp $
#
# This script is a helper for the show-buildlink3 target and outputs
# the arguments, each on a new line with any leading "+" signs replaced
# with four spaces.
#
while test $# -gt 0; do
pkg="$1"
pkg="${pkg#+}"
prefix=
stripped=no
while test $stripped = no; do
case $pkg in
+*) prefix=" $prefix"; pkg="${pkg#+}"; stripped=no ;;
*) stripped=yes ;;
esac
done
echo "$prefix$pkg"
shift
done
|