diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-10-22 14:36:12 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-10-22 15:09:36 (GMT) |
commit | 75f73dde0f2ebb14f1cc381ccc48fd3d41a31bc1 (patch) | |
tree | 1a53dd9f301d61ed13fc6038806ee3adee35799e | |
parent | df4ed1e9ffcdb6b99ccff9e6f44808fdd2abda56 (diff) | |
download | CMake-75f73dde0f2ebb14f1cc381ccc48fd3d41a31bc1.zip CMake-75f73dde0f2ebb14f1cc381ccc48fd3d41a31bc1.tar.gz CMake-75f73dde0f2ebb14f1cc381ccc48fd3d41a31bc1.tar.bz2 |
Utilities/Scripts: Remove temporary block-style comment conversion script
-rwxr-xr-x | Utilities/Scripts/rst-block-comments.bash | 33 |
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 |