blob: d19d4eb72b11ecde77c46840d18232ee4a4ff826 (
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
$BINDIR/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
|