summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xUtilities/Scripts/rst-block-comments.bash33
1 files changed, 0 insertions, 33 deletions
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