update_copyrights treated CONF-SH comments as C comments

due to inappropriate use of prefix regexp matching
This commit is contained in:
Andreas Gustafsson
2000-10-17 19:28:55 +00:00
parent 91104d20eb
commit 86cbec9012
4 changed files with 48 additions and 54 deletions

View File

@@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: update_copyrights,v 1.19 2000/08/01 00:46:14 tale Exp $
# $Id: update_copyrights,v 1.20 2000/10/17 19:28:51 gson Exp $
require 5.002;
@@ -74,12 +74,12 @@ while (<>) {
$start_comment = "";
$end_comment = "";
$first = "";
if ($type =~ /^(C|YACC|CONF-C)/) {
if ($type =~ /^(C|YACC|CONF-C)$/) {
$c_comment = 1;
$start_comment = "/*\n";
$prefix = " * ";
$end_comment = " */\n";
} elsif ($type =~ /^(SH|PERL|MAKE|CONF-SH)/) {
} elsif ($type =~ /^(SH|PERL|MAKE|CONF-SH)$/) {
$shell_comment = 1;
$prefix = "# ";
} elsif ($type eq "ZONE") {