From 75f73dde0f2ebb14f1cc381ccc48fd3d41a31bc1 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 22 Oct 2018 10:36:12 -0400 Subject: Utilities/Scripts: Remove temporary block-style comment conversion script --- Utilities/Scripts/rst-block-comments.bash | 33 ------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 Utilities/Scripts/rst-block-comments.bash diff --git a/Utilities/Scripts/rst-block-comments.bash b/Utilities/Scripts/rst-block-comments.bash deleted file mode 100755 index 864f21f..0000000 --- a/Utilities/Scripts/rst-block-comments.bash +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -files="$(git ls-files Modules | grep -v ' ' | xargs grep -l '^#.rst:$')" - -perl -i -e ' - use strict; - use warnings; - - my $rst = 0; - while (<>) { - if ($rst) { - if (/^# (.*)$/) { - print "$1\n"; - } elsif (/^#$/) { - print "\n"; - } else { - $rst = 0; - print "#]=======================================================================]\n"; - print $_; - } - } elsif (/^#\.rst:$/) { - $rst = 1; - print "#[=======================================================================[.rst:\n"; - } else { - print $_; - } - - if ($rst && eof) { - $rst = 0; - print "#]=======================================================================]\n"; - } - } -' $files -- cgit v0.12