2006-07-09 01:10:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2009-10-05 04:40:06 +02:00
|
|
|
# $NetBSD: show-buildlink3.sh,v 1.3 2009/10/05 02:40:06 obache Exp $
|
2006-07-09 01:10:35 +02:00
|
|
|
#
|
|
|
|
# This script is a helper for the show-buildlink3 target and outputs
|
2009-03-20 20:23:50 +01:00
|
|
|
# the arguments as tree.
|
2006-07-09 01:10:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
while test $# -gt 0; do
|
|
|
|
pkg="$1"
|
2009-03-20 20:23:50 +01:00
|
|
|
case $pkg in
|
|
|
|
-*)
|
2009-10-05 04:40:06 +02:00
|
|
|
indentation=${indentation# }
|
2009-03-20 20:23:50 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "${indentation}${pkg}"
|
|
|
|
indentation="${indentation} "
|
|
|
|
;;
|
|
|
|
esac
|
2006-07-09 01:10:35 +02:00
|
|
|
shift
|
|
|
|
done
|