gtk-transcription/build-aux/dist-vendor.sh

11 lines
240 B
Bash
Raw Normal View History

2023-07-16 10:22:04 +00:00
#!/bin/bash
export DIST="$1"
export SOURCE_ROOT="$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"