File: codegen.sh

package info (click to toggle)
rust-rlimit 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 240 kB
  • sloc: python: 142; sh: 13; makefile: 4
file content (14 lines) | stat: -rwxr-xr-x 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
echo "updating libc"
if [ ! -d "libc" ]; then
    git clone https://github.com/rust-lang/libc.git -b master --depth=1
else
    pushd libc
    git pull
    popd
fi
mkdir -p target
python3 ./scripts/codegen.py > target/out.rs
rustfmt target/out.rs
cp  target/out.rs src/bindings.rs
echo "done"