diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2003-02-21 13:12:02 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2003-02-21 13:12:02 +0000 |
commit | 1520142bc725e616da770a4e1d5625319b89c384 (patch) | |
tree | d06442a6d9d1d6e9937389995d3a68888e52ca00 /Tools | |
parent | 32b8021ea597dce557c90853579b05ce303dea33 (diff) | |
download | ports-1520142bc725e616da770a4e1d5625319b89c384.tar.gz ports-1520142bc725e616da770a4e1d5625319b89c384.zip |
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/de-pkg-comment | 5 |
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.") |