Просмотр исходного кода

replace ./cargo with cargo in sbf/bpf build scripts (#29371)

kirill lykov 2 лет назад
Родитель
Сommit
49f4e2ae05
4 измененных файлов с 9 добавлено и 9 удалено
  1. 3 3
      cargo-build-bpf
  2. 2 2
      cargo-build-sbf
  3. 3 3
      cargo-test-bpf
  4. 1 1
      cargo-test-sbf

+ 3 - 3
cargo-build-bpf

@@ -11,9 +11,9 @@ done
 
 set -ex
 if [[ ! -f "$here"/sdk/bpf/syscalls.txt ]]; then
-  "$here"/cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
+  cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
 fi
 if [[ ! -f "$here"/target/debug/cargo-build-sbf ]]; then
-    "$here"/cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
+    cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
 fi
-exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-build-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
+exec cargo run --manifest-path "$here"/sdk/cargo-build-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"

+ 2 - 2
cargo-build-sbf

@@ -11,6 +11,6 @@ done
 
 set -ex
 if [[ ! -f "$here"/sdk/sbf/syscalls.txt ]]; then
-  "$here"/cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
+  cargo build --manifest-path "$here"/programs/bpf_loader/gen-syscall-list/Cargo.toml
 fi
-exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
+exec cargo run --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"

+ 3 - 3
cargo-test-bpf

@@ -12,9 +12,9 @@ done
 export CARGO_BUILD_BPF="$here"/cargo-build-bpf
 set -x
 if [[ ! -f "$here"/target/debug/cargo-build-sbf ]]; then
-    "$here"/cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
+    cargo build --manifest-path "$here"/sdk/cargo-build-sbf/Cargo.toml
 fi
 if [[ ! -f "$here"/target/debug/cargo-test-sbf ]]; then
-    "$here"/cargo build --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml
+    cargo build --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml
 fi
-exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-test-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"
+exec cargo run --manifest-path "$here"/sdk/cargo-test-bpf/Cargo.toml -- $maybe_bpf_sdk "$@"

+ 1 - 1
cargo-test-sbf

@@ -11,4 +11,4 @@ done
 
 export CARGO_BUILD_SBF="$here"/cargo-build-sbf
 set -x
-exec "$here"/cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
+exec cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"