summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Dawson <phil.dawson@codethink.co.uk>2018-08-06 11:44:22 +0100
committerPhil Dawson <phil.dawson@codethink.co.uk>2018-09-12 16:06:54 +0100
commit59e4b2bd3a7813321737aec48aa4d1a65d9a2c76 (patch)
tree01f389542294bc91f38c370ca283870a844672f6
parent7ff31d16c84317622d0b1d102d8873afece35f6f (diff)
downloadbuildstream-phil/filter-docs.tar.gz
fixup! WIP: doc/examples/: Add toy filter examplephil/filter-docs
-rw-r--r--doc/examples/filters/elements/.foo.bst.swpbin12288 -> 0 bytes
-rw-r--r--doc/examples/filters/elements/foo-filter.bst12
-rw-r--r--doc/examples/filters/elements/foo.bst16
3 files changed, 21 insertions, 7 deletions
diff --git a/doc/examples/filters/elements/.foo.bst.swp b/doc/examples/filters/elements/.foo.bst.swp
deleted file mode 100644
index 7c1cf5f10..000000000
--- a/doc/examples/filters/elements/.foo.bst.swp
+++ /dev/null
Binary files differ
diff --git a/doc/examples/filters/elements/foo-filter.bst b/doc/examples/filters/elements/foo-filter.bst
new file mode 100644
index 000000000..590aa2dc4
--- /dev/null
+++ b/doc/examples/filters/elements/foo-filter.bst
@@ -0,0 +1,12 @@
+kind: filter
+
+depends:
+- filename: foo.bst
+ type: build
+
+config:
+ include:
+ - bar
+
+ exclude:
+ - baz
diff --git a/doc/examples/filters/elements/foo.bst b/doc/examples/filters/elements/foo.bst
index 72422d036..5f77fd1d4 100644
--- a/doc/examples/filters/elements/foo.bst
+++ b/doc/examples/filters/elements/foo.bst
@@ -1,15 +1,17 @@
-kind: local
+kind: import
-config:
- source:
- - kind: local
- path: files/foo/
+sources:
+- kind: local
+ path: files/foo/
+
+config:
+ target: /
public:
bst:
split-rules:
bar:
- - "foo/bar/*"
+ - "bar*"
baz:
- - "foo/baz/*"
+ - "baz*"