summaryrefslogtreecommitdiffstats
path: root/vendor/perf-event-open-sys/regenerate.sh
blob: 81cfea6808b054e074a154b99af1a703526944d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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