You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:19:09 UTC

[buildstream] 03/03: fixup! WIP: doc/examples/: Add toy filter example

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch phil/filter-docs
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 59e4b2bd3a7813321737aec48aa4d1a65d9a2c76
Author: Phil Dawson <ph...@codethink.co.uk>
AuthorDate: Mon Aug 6 11:44:22 2018 +0100

    fixup! WIP: doc/examples/: Add toy filter example
---
 doc/examples/filters/elements/.foo.bst.swp   | Bin 12288 -> 0 bytes
 doc/examples/filters/elements/foo-filter.bst |  12 ++++++++++++
 doc/examples/filters/elements/foo.bst        |  16 +++++++++-------
 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 7c1cf5f..0000000
Binary files a/doc/examples/filters/elements/.foo.bst.swp and /dev/null differ
diff --git a/doc/examples/filters/elements/foo-filter.bst b/doc/examples/filters/elements/foo-filter.bst
new file mode 100644
index 0000000..590aa2d
--- /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 72422d0..5f77fd1 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*"