13 lines
238 B
Bash
Executable File
13 lines
238 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
export DIST="$1"
|
|
export SOURCE_ROOT="$2"
|
|
|
|
cd "$SOURCE_ROOT"
|
|
mkdir "$DIST"/.cargo
|
|
cargo vendor >"$DIST/.cargo/config"
|
|
sed -i 's/^directory = ".*"/directory = "vendor"/g' "$DIST/.cargo/config"
|
|
mv vendor "$DIST"
|