diff options
Diffstat (limited to 'vendor/perf-event-open-sys/regenerate.sh')
-rwxr-xr-x | vendor/perf-event-open-sys/regenerate.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/perf-event-open-sys/regenerate.sh b/vendor/perf-event-open-sys/regenerate.sh new file mode 100755 index 000000000..81cfea680 --- /dev/null +++ b/vendor/perf-event-open-sys/regenerate.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -eu + +cd $(dirname $0) + +( + sed -e '/automatically generated by rust-bindgen/,$d' src/bindings.rs + bindgen --with-derive-default wrapper.h +) > new-bindings.rs~ + +mv new-bindings.rs~ src/bindings.rs |