summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xTools/scripts/de-pkg-comment5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/scripts/de-pkg-comment b/Tools/scripts/de-pkg-comment
index fcd031f..b829919 100755
--- a/Tools/scripts/de-pkg-comment
+++ b/Tools/scripts/de-pkg-comment
@@ -102,8 +102,9 @@ ARGV.each { |$dir|
end
open(commentfile) { |f|
- comment = f.gets.chomp
- contents << "COMMENT#{assign}\t#{comment}\n"
+ comment = f.gets.strip
+ quoted_comment = comment.gsub(/#/, '\\#').gsub(/\$/, '$$')
+ contents << "COMMENT#{assign}\t#{quoted_comment}\n"
}
when /^COMMENTFILE\s*([?!:]?=)/
info("COMMENTFILE is defined. Please check out and edit manually.")
OpenPOWER on IntegriCloud