aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-02-21 13:12:02 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-02-21 13:12:02 +0000
commit1520142bc725e616da770a4e1d5625319b89c384 (patch)
treed06442a6d9d1d6e9937389995d3a68888e52ca00
parent32b8021ea597dce557c90853579b05ce303dea33 (diff)
downloadports-1520142bc725e616da770a4e1d5625319b89c384.tar.gz
ports-1520142bc725e616da770a4e1d5625319b89c384.zip
Notes
-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 fcd031ff8ceb..b82991908efc 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.")