2021-02-04 19:25:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
export DIST="$1"
|
|
|
|
export SOURCE_ROOT="$2"
|
|
|
|
|
|
|
|
cd "$SOURCE_ROOT"
|
|
|
|
mkdir "$DIST"/.cargo
|
2023-11-27 16:18:10 +00:00
|
|
|
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' >> $DIST/.cargo/config.toml
|
2021-02-04 19:25:29 +00:00
|
|
|
# Move vendor into dist tarball directory
|
|
|
|
mv vendor "$DIST"
|