This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
concat interacts badly with magic
[perl5.git] / keywords.pl
index 09e8deb..fe745d4 100755 (executable)
@@ -3,13 +3,16 @@
 require 'regen_lib.pl';
 safer_unlink ("keywords.h");
 open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
+binmode KW;
 select KW;
 
 print <<EOM;
-/*
+/* -*- buffer-read-only: t -*-
+ *
  *    keywords.h
  *
- *    Copyright (c) 1997-2002, Larry Wall
+ *    Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
+ *    by Larry Wall and others
  *
  *    You may distribute under the terms of either the GNU General Public
  *    License or the Artistic License, as specified in the README file.
@@ -31,6 +34,8 @@ while (<DATA>) {
     print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
 }
 
+print KW "\n/* ex: set ro: */\n";
+
 close KW or die "Error closing keywords.h: $!";
 
 ###########################################################################