nix-software-center/build-aux/dist-vendor.sh

10 lines
247 B
Bash
Raw Permalink Normal View History

2022-08-27 00:48:43 +03:00
#!/usr/bin/env bash
export SOURCE_ROOT="$1"
export DIST="$2"
cd "$SOURCE_ROOT"
mkdir "$DIST"/.cargo
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
# Move vendor into dist tarball directory
mv vendor "$DIST"