From c9dcd30e95ef0337196918f4190b735de282a9b6 2020-08-07 17:38:30 From: Matthias Bussonnier Date: 2020-08-07 17:38:30 Subject: [PATCH] Backport PR #12479: try to auto comment ''/.dev --- diff --git a/tools/release_helper.sh b/tools/release_helper.sh index dd700b5..317ef5e 100644 --- a/tools/release_helper.sh +++ b/tools/release_helper.sh @@ -100,6 +100,10 @@ echo "Cleaning repository" git clean -xfdi echo $GREEN"please update version number in ${RED}IPython/core/release.py${NOR} , Do not commit yet – we'll do it later."$NOR +echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py${NOR}" +sed -i bkp -e '/Uncomment/s/^# //g' IPython/core/release.py +rm IPython/core/release.pybkp +git diff echo $GREEN"Press enter to continue"$NOR read @@ -142,7 +146,13 @@ then echo $GREEN"please update version number and back to .dev in ${RED}IPython/core/release.py" + echo $GREEN"I tried ${RED}sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py${NOR}" + sed -i bkp -e '/Uncomment/s/^/# /g' IPython/core/release.py + rm IPython/core/release.pybkp + git diff + echo $GREEN"Please bump ${RED}the minor version number${NOR}" echo ${BLUE}"Do not commit yet – we'll do it later."$NOR + echo $GREEN"Press enter to continue"$NOR read