Skip to content
Snippets Groups Projects
Commit 6418f893 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix headers with directories

parent 124e118f
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,12 @@ for config in src/header/*/cbindgen.toml ...@@ -9,8 +9,12 @@ for config in src/header/*/cbindgen.toml
do do
dir="$(dirname "$config")" dir="$(dirname "$config")"
name="$(basename "$dir")" name="$(basename "$dir")"
pushd "$dir" if [ "${name:0:1}" != "_" ]
cargo run --release --manifest-path "$cbindgen/Cargo.toml" -- \ then
-c cbindgen.toml -o "$include/$name.h" mod.rs header="$include/${name/_/\/}.h"
popd pushd "$dir"
cargo run --release --manifest-path "$cbindgen/Cargo.toml" -- \
-c cbindgen.toml -o "$header" mod.rs
popd
fi
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment