summaryrefslogtreecommitdiff
path: root/regen/reentr.pl
Commit message (Collapse)AuthorAgeFilesLines
* Create open_print_header() to avoid duplicate parameters to open_new().Nicholas Clark2011-05-191-11/+11
|
* Add a 'quote' argument to read_only_top(), to pass in an optional Tolkien.Nicholas Clark2011-05-191-10/+9
| | | | Use this in embed.pl for perlapi.c, and reentr.pl for reentr.c.
* Add an optional third argument to open_new(), to invoke read_only_top() with.Nicholas Clark2011-05-191-5/+5
| | | | Merge together many calls to open_new() and read_only_top().
* Rename safer_open() to open_new(), and eliminate the first parameter.Nicholas Clark2011-05-191-2/+2
| | | | Update the SHA256s where necessary in the generated files.
* In regen scripts, print to explicit file handles instead of using select.Nicholas Clark2011-01-231-19/+12
| | | | | Also put explicit quotes on heredoc declarations to show whether they should interpolate, merge some heredocs, and remove & from calls to &tab(...)
* Change close_and_rename() to read_only_bottom_close_and_rename()Nicholas Clark2011-01-231-6/+2
| | | | | | | | | | All users of close_and_rename() were printing out the appropriate "ex: set ro:" string to the file handle immediately before closing it. So move that into the common function and rename it to reflect what it now does. [Except overload.pl, which should have been, given that it calls read_only_top()] Print a newline above the "ex: set ro:" line. This removes many newlines from the regen scripts, but does add newlines to a couple of generated files.
* In regen/*.pl, refactor the repeated code for close and rename if different.Nicholas Clark2011-01-231-6/+4
| | | | | | | Pass the final file name as an optional second argument of safer_open() and store it with the file handle. Add a function close_and_rename() which closes the file handle, then retrieves the final name, and renames the temporary file if the two differ.
* In regen_lib.pl, when opening, first unlink a previous file of that name.Nicholas Clark2011-01-231-2/+0
| | | | | | Previously regcomp.pl had an explicit unlink for the file it creates, but none of the other regen/*.pl scripts did. Also, remove commented out code relating to unlink.
* Move all the generated file header printing into read_only_top()Nicholas Clark2011-01-231-27/+14
| | | | | | | | | Previously all the scripts in regen/ had code to generate header comments (buffer-read-only, "do not edit this file", and optionally regeneration script, regeneration data, copyright years and filename). This change results in some minor reformatting of header blocks, and standardises the copyright line as "Larry Wall and others".
* reentr.pl -> regen/reentr.plFather Chrysostomos2010-10-131-2/+2
|
* Move regen scripts to regen/Steffen Mueller2010-10-101-0/+1149
Moves the various scripts that are called by regen.pl to a subdirectory to reduce clutter.