summaryrefslogtreecommitdiff
path: root/installman
Commit message (Collapse)AuthorAgeFilesLines
* Fix installman ignoring --silentDagfinn Ilmari Mannsåker2013-01-271-2/+2
|
* Some tidying in installman.Nicholas Clark2011-12-241-21/+19
| | | | | | | | | | Avoid the unnecessary lexicals $xnew and $xold. Use lexicals for file handles, and check the return of close. Why import mkpath() from File::Path and then comment its provenance at the point of use? Remove an exit(0) which is only 20 lines from the end of the script. Note why we can't re-use a file handle open on the Pod file we're currently processing.
* Add x2p/a2p.pod to the 'master' array returned by get_pod_metadata().Nicholas Clark2011-12-241-3/+1
| | | | | | | | | | This makes installman install it correctly. Flagging it as 'toc_omit' means that everything else ignores it. This eliminates the last remaining use of the "pod =" feature of utils.lst, permitting related code to be removed from installperl and installman. This change has the possibly unfortunate cosmetic side effect of installman now installing a2p.1 first, before perl.1
* Avoid installman warning about "no documentation in pod/perldoc.pod"Nicholas Clark2011-12-241-6/+4
| | | | | | | | | | | | | | | | | | | Since commit a2afbef4476f724a in July 2011 moved perldoc.pod from pod/ to dist/Pod-Perldoc/lib/ installman will have been warning "no documentation in pod/perldoc.pod", having already installed the perldoc man page earlier in the process. However, the reference in utils.lst has actually been arguably erroneous since it was added in commit cd0cddc9814dd65e (July 2003) to stop installman installing an empty perldoc.1 manpage. (Which it had been doing since commit 1a67fee7d910c677 (December 2002), as a side effect of overwriting the correct file (sourced from pod/perldoc.pod) with an incorrect file (sourced from scanning utils/perldoc for Pod). The fix "worked" by causing perldoc.1 to be written correctly twice, both times sourced from pod/perldoc.pod :-) The best fix seems to be to remember the names of the manpages we install in man1, and automatically skip processing for any utility whose manpage has already been installed.
* Move the common Pod scanning code from installman and buildtoc to pod_lib.plNicholas Clark2011-12-241-26/+3
| | | | | | | The unified code to scan lib/ for Pod is now in pods_to_install(). It returns found Pods partitioned into 'MODULE' and 'PRAGMA', as buildtoc needs this distinction. installman installs Pods in the same order as before, as 'PRAGMA' sort lexically after 'MODULE'.
* Refactor installman's use of File::Find::find() to converge with buildtoc's.Nicholas Clark2011-12-241-12/+10
|
* In installman, move the call to File::Find::find() to the top level.Nicholas Clark2011-12-211-43/+36
| | | | | | | | The code to recursively scan a directory with File::File::find() is now only used by one caller of podset(), so move it to the call point, reducing the amount of conditional code within podset(). The first argument to podset() is now always a reference to a hash of "work to be done". Add an optional fourth argument to give the directory name for diagnostics.
* Re-order entries in the 'master' array returned by get_pod_metadata().Nicholas Clark2011-12-211-1/+1
| | | | Now it returns just the pod's name, its filename, and the flags (if any).
* Rationalise use of the Pod metadata structure returned by get_pod_metadata().Nicholas Clark2011-12-211-1/+1
| | | | | | | | | | | | | | | | Nothing uses the entries in the 'master' array for the for the elements flagged as 'aux', so don't generate them. Only buildtoc uses the the 'aux' hash, and only the keys in sorted order, so replace the hash with a sorted array. All entries in the 'master' array are now defined, and references to 5 element arrays, so remove code that checks for this. Likewise, as the 'aux' flag is no longer used, remove code related to it. When generating the entries for README files in %our_pods in the consistency checking code in get_pod_metadata, $_->[4] and $_->[1] will always be equal, as no READMEs are copied from dual life modules. So use $_->[1] instead, as this permits a future simplification.
* installman should use the data in pod.lst to track dual-life pods in lib/Nicholas Clark2011-12-191-4/+9
| | | | | | | | This ensures that perlfaq*, perlglossary, perlxs, perlxstut and perldoc's man pages are installed in man1, not man3, along with any future dual-life pods. This is an improvement on commit 0beff067932254cd which only dealt with perlfaq* and perlglossary, and had the unfortunate side effect of also causing these 11 files to be installed to bin/
* Various installman cleanups.Nicholas Clark2011-12-191-20/+11
| | | | | | | | | | | | Eliminate the C<use File::Copy> and various $Is_* vars, unneeded since commit 9e6fc21fcd859351 moved the code that uses them into install_lib.pl Move the filename-based skip code into the callback for File::Find::find(), as this saves ever storing them in %$modpods. Eliminate @to_process, which has been mostly redundant since commit a274383458745101, and completely redundant since commits 02bc0c09b2a02ba6^ and 02bc0c09b2a02ba6. Eliminate the batchlimit command line option, which has been redundant since commit a274383458745101.
* In installman, pod2man() now takes a hashref instead of a list of scripts.Nicholas Clark2011-12-191-26/+28
| | | | | | Avoid needless splitting and joining of paths when processing the "scripts" from utils.lst. Remove the unused lexical $where2. Remove an inaccurate comment about nochdir.
* In pod2man() in installman, transpose the keys and values of %modpods.Nicholas Clark2011-12-191-4/+4
| | | | | This doesn't change the order of processing (Pod pathnames all in lib/ sort in the same order as module names), but will make future refactoring easier.
* Stop installing the manpage for XS::Typemap.Nicholas Clark2011-12-191-0/+1
| | | | | | Like XS::APItest, we don't install the module anyway, so there's no need to have confusing documentation installed. (See commit ae5391ad3eac0349, which made the analogous change for XS::APItest*)
* installman only needs match =head1 to identify files with Pod.Nicholas Clark2011-12-191-1/+8
| | | | | | | | Commit 63fae90782a9851d made installman skip files which contained no Pod. However, the regex used, /^=(?:head\d+|item|pod)\b/ is overly permissive. All files with Pod actually match /^=head1\b/. Moreover, a Pod file which does not start with a =head1 is not going to generate a well formed man page. Hence restrict the files processed to those which are well formed.
* Install perlfaq and perlglossary manpages in section 1 of the manualRafael Garcia-Suarez2011-12-011-0/+3
|
* [RT #36079] Convert ` to '.jkeenan2011-11-221-1/+1
|
* merge XS-APItest-KeywordRPN into XS-APItestZefram2010-09-261-1/+0
| | | | | XS-APItest-KeywordRPN has turned out to be less useful as an independent module than expected, and less strictly about RPN than it originally was.
* Stop installing manpages for XS::APItest*Florian Ragwitz2010-08-211-7/+13
| | | | | We don't install the modules anyway, so there's no need to have confusing docs installed for them.
* A couple more installman tidy ups.Nicholas Clark2008-05-191-10/+4
| | | p4raw-id: //depot/perl@33863
* Merge common code from installperl and installman into install_lib.plNicholas Clark2008-05-191-108/+7
| | | p4raw-id: //depot/perl@33862
* Converge some changes from installperl into installman. I have aNicholas Clark2008-05-191-1/+15
| | | | | | | | | | suspicion that installman is only run on *nix and OS/2, not Win32 or VMS. Specifically sub unlink - return scalar(@names) if $Is_VMS # from change 854 sub link - change warn to die # from change 4774 sub samepath - case insensitive name comparison # from change 311 (in the ansiperl branch, merged via the win32 branch) p4raw-id: //depot/perl@33860
* Make installman work with -Duserelocatableinc and DESTDIRRafael Garcia-Suarez2007-11-021-0/+26
| | | p4raw-id: //depot/perl@32212
* Remove old Pod::Man parser creation.Rafael Garcia-Suarez2006-01-051-5/+1
| | | | | Fix a run-time warning. p4raw-id: //depot/perl@26657
* Change installman to instantiate a new Pod::Man instance for eachSteve Peters2006-01-051-0/+4
| | | | | file processed. This is now required with podlators-2.0. p4raw-id: //depot/perl@26656
* [perl #29937] Entries missing from .packlist jdhedden@1979.usna.com2004-05-311-0/+5
| | | | | | From: jdhedden@1979.usna.com (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.9-29937-88315.2.18472609678159@perl.org> p4raw-id: //depot/perl@22878
* Debian patch that skips podless modulesAlexey Tourbin2003-08-041-0/+19
| | | | | | | Message-ID: <20030803173300.GC2076@julia.office.altlinux.ru> (plus Schwern's and Robert's nits) p4raw-id: //depot/perl@20466
* Make consistent with installperl (and working in MPE/iX)Jarkko Hietaniemi2003-07-311-1/+1
| | | | | (Mark Bixby) p4raw-id: //depot/perl@20386
* The --destdir option to installman should be madeJarkko Hietaniemi2003-07-291-1/+1
| | | | | | optional so that it doesn't complain when passed an empty value (from Rafael) p4raw-id: //depot/perl@20308
* DESTDIR in perl-5.8.1 package?Michael Schroeder2003-07-291-7/+9
| | | | | | | | | | | | | | | Date: Fri, 11 Jul 2003 14:48:41 +0200 Message-ID: <20030711124841.GA18327@immd4.informatik.uni-erlangen.de> Subject: Re: DESTDIR in perl-5.8.1 package? From: Michael Schroeder <Michael.Schroeder@informatik.uni-erlangen.de> Date: Mon, 14 Jul 2003 12:00:25 +0200 Message-ID: <20030714100025.GA26612@immd4.informatik.uni-erlangen.de> (blindly prepending and s///ing away the $destdir does not work at least in VMS, but the --destdir should help rpm builders and the like) p4raw-id: //depot/perl@20302
* Don't install test pods.Jarkko Hietaniemi2002-07-071-0/+1
| | | p4raw-id: //depot/perl@17408
* Re: [ID 20011127.153] installman errorNicholas Clark2001-11-291-1/+1
| | | | | Message-ID: <20011128233843.N37621@plum.flirble.org> p4raw-id: //depot/perl@13351
* Re: [PATCH] Re: [ID 20011118.128] installman chdir stuffs INCNicholas Clark2001-11-271-1/+1
| | | | | Message-ID: <20011126230633.Q37621@plum.flirble.org> p4raw-id: //depot/perl@13293
* Skip the link= directives of utils.lst if no mandirJarkko Hietaniemi2001-11-251-5/+8
| | | | | (if no manpages). p4raw-id: //depot/perl@13262
* Re: [ID 20011118.128] installman chdir stuffs INCNicholas Clark2001-11-241-31/+22
| | | | | Message-ID: <20011124180626.T37621@plum.flirble.org> p4raw-id: //depot/perl@13241
* "link =" from utils.lst was being processed oddly.Jarkko Hietaniemi2001-11-151-3/+6
| | | p4raw-id: //depot/perl@13015
* Using Pod::Man instead of pod2manMichael G. Schwern2001-10-201-54/+26
| | | | | Message-Id: <20011020014121.I3681@blackrider> p4raw-id: //depot/perl@12528
* [ID 20010621.002] UnixWare 7.1.1 and Perl-5.6.1 problems0000-Admin2001-06-211-0/+4
| | | | | | | Message-Id: <200106201211.f5KCBnm24320@egg.karlov.mff.cuni.cz> Setting umask to something friendlier. p4raw-id: //depot/perl@10783
* Detypos.Jarkko Hietaniemi2001-05-171-1/+1
| | | p4raw-id: //depot/perl@10151
* Re: [PATCH] Abstract "utility" information from installmanSimon Cozens2001-05-161-2/+2
| | | | | Message-ID: <20010516180208.A6458@netthink.co.uk> p4raw-id: //depot/perl@10135
* Re: [PATCH] Abstract "utility" information from installmanSimon Cozens2001-05-161-16/+12
| | | | | Message-ID: <20010516155755.A4728@netthink.co.uk> p4raw-id: //depot/perl@10129
* Install psed man page.Jarkko Hietaniemi2001-05-031-0/+3
| | | p4raw-id: //depot/perl@9979
* installman go-faster stripesJarkko Hietaniemi2000-10-221-33/+39
| | | | | | | | | | | | From: Nicholas Clark <nick@talking.bollo.cx> Date: Sat, 21 Oct 2000 17:24:53 +0100 Message-ID: <20001021172452.A20371@Bagpuss.unfortu.net> Subject: Re: installman go-faster stripes From: Russ Allbery <rra@stanford.edu> Date: 21 Oct 2000 11:04:13 -0700 Message-ID: <ylbswe5aw2.fsf@windlord.stanford.edu> p4raw-id: //depot/perl@7396
* [ID 20001004.003] installman "Ambiguous call resolved as CORE::"nick@babyhippo.com2000-10-041-3/+3
| | | | | | | Message-Id: <20001004120645.A7356@babyhippo.com> Retract 7118 and 7135. p4raw-id: //depot/perl@7140
* Re: PATCH for 20001003.004Aaron B. Dossett2000-10-031-3/+3
| | | | | Message-Id: <E13gTay-0006od-00@iglou.com> p4raw-id: //depot/perl@7135
* installman bugletLupe Christoph2000-08-271-1/+1
| | | | | Message-ID: <20000827143859.E4437@alanya.lupe-christoph.de> p4raw-id: //depot/perl@6843
* no-install target a la make -n.Abigail2000-08-261-2/+1
| | | | | | Subject: [PATCH] make no-install (was Re: [PATCH] installation not quite silent yet.) Message-ID: <20000826075735.18912.qmail@foad.org> p4raw-id: //depot/perl@6839
* installation not quite silent yet.Abigail2000-08-261-1/+1
| | | | | Message-ID: <20000826000753.7822.qmail@foad.org> p4raw-id: //depot/perl@6829
* [PATCH @6820] installman under -w and strict (was Re: [PATCH] More silencing ↵Daniel Chetlin2000-08-251-67/+73
| | | | | | | | | | | | | of installman.) Date: Fri, 25 Aug 2000 12:23:16 -0700 Message-ID: <20000825122316.A10250@ilmd.chetlin.org> Subject: Re: [PATCH @6820] installman under -w and strict (was Re: [PATCH] More silencing of installman.) From: Daniel Chetlin <daniel@chetlin.com> Date: Fri, 25 Aug 2000 14:47:19 -0700 Message-ID: <20000825144719.A20587@ilmd.chetlin.org> p4raw-id: //depot/perl@6824
* Re: [PATCH] More silencing of installman.Abigail2000-08-251-11/+14
| | | | | | | | | | | Date: Thu, 24 Aug 2000 19:27:03 -0400 Message-ID: <20000824232703.7001.qmail@foad.org> Subject: Re: [PATCH] More silencing of installman. From: <abigail@foad.org> Date: Fri, 25 Aug 2000 03:00:58 -0400 Message-ID: <20000825070058.10697.qmail@foad.org> p4raw-id: //depot/perl@6813