Script can now be run from any directory

This commit is contained in:
Michael Vines
2019-03-02 21:56:54 -08:00
committed by Grimes
parent 109101c2dc
commit b8b7de5522

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
cargo install xargo
set -e
@ -22,4 +24,4 @@ export XARGO_RUST_SRC="../../../../sdk/bpf/rust-bpf-sysroot/src"
# export XARGO_RUST_SRC="../../../../../rust-bpf-sysroot/src"
xargo build --target bpfel-unknown-unknown --release -v
{ { set +x; } 2>/dev/null; echo Success; }
{ { set +x; } 2>/dev/null; echo Success; }