[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/RustPython/RustPython/main/scripts/redox/uncomment-cargo.sh [Back]  [Original]

#!/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"

Web Proxy Viewer  |  New URL  |  Original Page