This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: -Os for Darwin why?
[perl5.git] / keywords.pl
index e2d5903..c804620 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
-unlink "keywords.h";
+require 'regen.pl';
+safer_unlink ("keywords.h");
 open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
 select KW;
 
@@ -14,7 +15,7 @@ print <<EOM;
  *    License or the Artistic License, as specified in the README file.
  *
  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
- *  This file is built by opcode.pl from its data.  Any changes made here
+ *  This file is built by keywords.pl from its data.  Any changes made here
  *  will be lost!
  */
 EOM
@@ -30,6 +31,8 @@ while (<DATA>) {
     print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
 }
 
+close KW or die "Error closing keywords.h: $!";
+
 ###########################################################################
 sub tab {
     local($l, $t) = @_;
@@ -93,6 +96,7 @@ endpwent
 endservent
 eof
 eq
+err
 eval
 exec
 exists