fractal/build-aux/dist-vendor.sh
Kévin Commaille 34dc72699e meson: Do not create new cargo config file with dist script
Instead append to the existing one.
2023-11-27 16:51:20 +00:00

9 lines
245 B
Bash

#!/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.toml
# Move vendor into dist tarball directory
mv vendor "$DIST"