mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
16 lines
211 B
Bash
Executable File
16 lines
211 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cargo=${1:-Cargo.toml}
|
|
|
|
tmpfile=$(mktemp)
|
|
|
|
awk '
|
|
/REDOX START/{redox=1; print; next}
|
|
/REDOX END/{redox=0}
|
|
{if (redox) sub(/^#\s*/, ""); print}
|
|
' "$cargo" >"$tmpfile"
|
|
|
|
mv "$tmpfile" "$cargo"
|