X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=autodoc.pl;h=042131e97606a566c15a9e7e7751f72162b4f4bc;hb=da80cd87614d1347c811f58b124b84de7a7b192a;hp=4cccc354db6a3985a79a1fbb297081e5dc0d490e;hpb=7b73ff9889742cfd1d8c92116386d655caecafb7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/autodoc.pl b/autodoc.pl index 4cccc35..042131e 100644 --- a/autodoc.pl +++ b/autodoc.pl @@ -1,4 +1,20 @@ #!/usr/bin/perl -w +# +# Unconditionally regenerate: +# +# pod/perlintern.pod +# pod/perlapi.pod +# +# from information stored in +# +# embed.fnc +# plus all the .c and .h files listed in MANIFEST +# +# Has an optional arg, which is the directory to chdir to before reading +# MANIFEST and *.[ch]. +# +# This script is normally invoked as part of 'make all', but is also +# called from from regen.pl. use strict; @@ -126,6 +142,12 @@ _EOF_ close $fh or die "Can't close $filename: $!"; } +if (@ARGV) { + my $workdir = shift; + chdir $workdir + or die "Couldn't chdir to '$workdir': $!"; +} + my $file; # glob() picks up docs from extra .c or .h files that may be in unclean # development trees.