diff options
-rwxr-xr-x | buildfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/buildfile b/buildfile new file mode 100755 index 0000000..963d706 --- /dev/null +++ b/buildfile @@ -0,0 +1,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 |