blob: 963d70696eaab9e700a956eac746ae92f456a929 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
. settings.sh
$(dirname $0)/prepare-repository
verbose=0
if [ "$1" = "-v" ]; then
verbose=1
shift
fi
bcfg2-info -Q "$REPO" buildfile "$@" | \
if [ "$verbose" = "1" ]; then
awk '/<Path/,/<\/Path>/{print}'
else
# only output lines between <Path></Path> (excluding </Path>)
awk '/<\/Path>/{p=0} /<Path/{p=1} p' | \
# remove opening path tag
sed '1s/<Path\( [^=>]*="[^"]*"\)*>//'
fi
|