Skip to content

Commit

Permalink
Merge pull request #213 from EliahKagan/dirsep
Browse files Browse the repository at this point in the history
Treat `\` in `cargo package -l` output as `/`
  • Loading branch information
Byron authored Sep 6, 2024
2 parents 1940f16 + 85c7c2a commit bb9e89f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cargo-zng
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
set -eu
trap 'rm -rf "$tempdir"' 0 INT
tempdir="$(mktemp -d)"
cargo package -l --allow-dirty | grep -v '^Cargo\.toml\.orig$' | tar --files-from=- -cf - | tar -C "$tempdir" -xf -
cargo package -l --allow-dirty |
tr '\\' '/' |
grep -v '^Cargo\.toml\.orig$' |
tar --files-from=- -cf - |
tar -C "$tempdir" -xf -
cp Cargo-zng.toml "$tempdir/Cargo.toml"
cp -a systest "$tempdir/systest"
mv "$tempdir/systest/Cargo-zng.toml" "$tempdir/systest/Cargo.toml"
Expand Down

0 comments on commit bb9e89f

Please sign in to comment.