X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=04ab2c8763f1a01bee803d3ef65890b775f28c21;hp=e2d5903d69a71b1bd78aaa58a7b81137d89c0fcd;hpb=a41d505948d4bfb0505c93666700310d5ffef203;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index e2d5903..2cc50b5 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,6 +1,7 @@ #!/usr/bin/perl -unlink "keywords.h"; +require 'regen_lib.pl'; +safer_unlink ("keywords.h"); open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n"; select KW; @@ -8,13 +9,14 @@ print <) { print &tab(5, "#define KEY_$keyword"), $keynum++, "\n"; } +close KW or die "Error closing keywords.h: $!"; + ########################################################################### sub tab { local($l, $t) = @_; @@ -93,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists