FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
RustPython/scripts/redox/uncomment-cargo.sh at main · RustPython/RustPython · GitHub
RustPython
RustPython
Repository navigation
Code
Issues
182
(182)
Pull requests
110
(110)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
RustPython
/
scripts
/
redox
/
uncomment-cargo.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
15 lines (10 loc) · 211 Bytes
Breadcrumbs
RustPython
/
scripts
/
redox
/
uncomment-cargo.sh
Copy path
File metadata and controls
executable file
·
15 lines (10 loc) · 211 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!
/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
"
Back
|
FazBrowse Home
|
New Git URL