meson: Do not create new cargo config file with dist script

Instead append to the existing one.
This commit is contained in:
Kévin Commaille 2023-11-27 17:18:10 +01:00 committed by Kévin Commaille
parent f5dd08d114
commit 34dc72699e
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ export SOURCE_ROOT="$2"
cd "$SOURCE_ROOT"
mkdir "$DIST"/.cargo
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' >> $DIST/.cargo/config.toml
# Move vendor into dist tarball directory
mv vendor "$DIST"