summaryrefslogtreecommitdiff
path: root/keywords.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2002-10-29 23:00:05 +0000
committerhv <hv@crypt.org>2002-11-19 12:07:25 +0000
commit36bb303b6ac55df9c2780b48d374c505374dc378 (patch)
tree6aa3bf528c2bb5e5d77e72a8f5137a045663734e /keywords.pl
parent0dae17bd7971d11b90a07b6fc03ec78ab38e4db4 (diff)
downloadperl-36bb303b6ac55df9c2780b48d374c505374dc378.tar.gz
regen_headers outside Makefile (was Re: [PATCH] embed.pl doc)
Message-ID: <20021029230003.GF287@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18160
Diffstat (limited to 'keywords.pl')
-rwxr-xr-xkeywords.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/keywords.pl b/keywords.pl
index d5903fa18f..c804620cf8 100755
--- a/keywords.pl
+++ b/keywords.pl
@@ -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;
@@ -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) = @_;