summaryrefslogtreecommitdiff
path: root/subplotlib/build.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-12-27 14:29:28 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2022-01-01 10:40:57 +0000
commit0fd065044076888285f42e0105f07a0c924b2819 (patch)
tree307c0a3358f7c57faff9445d2cfc5cacd0b1961b /subplotlib/build.rs
parentd1f336e141c3533c5e4dda049f03dfe168f99470 (diff)
downloadsubplot-0fd065044076888285f42e0105f07a0c924b2819.tar.gz
subplotlib: Run subplot.md in Rust too
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib/build.rs')
-rw-r--r--subplotlib/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/subplotlib/build.rs b/subplotlib/build.rs
index 5f94883..a809a68 100644
--- a/subplotlib/build.rs
+++ b/subplotlib/build.rs
@@ -17,9 +17,10 @@ use std::path::Path;
fn main() {
let subplots = glob("*.md").expect("failed to find subplots in subplotlib");
let tests = Path::new("tests");
+ let subplots = subplots.chain(Some(Ok("../subplot.md".into())));
for entry in subplots {
let entry = entry.expect("failed to get subplot dir entry in subplotlib");
- let mut inc = tests.join(&entry);
+ let mut inc = tests.join(&entry.file_name().unwrap());
inc.set_extension("rs");
if !inc.exists() {
panic!("missing include file: {}", inc.display());