summaryrefslogtreecommitdiff
path: root/installman
Commit message (Collapse)AuthorAgeFilesLines
* fix spellingKaren Etheridge2017-11-191-1/+1
|
* Do not (attempt to) install man pages when explicitly disabledH.Merijn Brand2017-11-131-20/+28
| | | | | | | | | Configure … -Dman1dir=none -Dman3dir=none … → installman1dir='' installman3dir=''
* Replace multiple 'use vars' by 'our' in utilsNicolas R2017-11-111-1/+1
| | | | | Using vars pragma is discouraged and has been superseded by 'our' declarations available in Perl v5.6.0 or later.
* Reduce verbosity of "make install.man"Aaron Crane2016-11-121-0/+3
| | | | | | | Previously, two progress messages were emitted for each manpage: one by installman itself, and one by the function in install_lib.pl that it calls to actually install the file. Disabling the second of those in each case saves over 750 lines of unhelpful output.
* installman: don't warn about missing podDavid Mitchell2016-03-011-1/+1
| | | | | | | | | | | | | Currently it spits out about 80 lines like the following to stderr: no documentation in lib/Archive/Tar/Constant.pm no documentation in lib/CPAN/Author.pm no documentation in lib/CPAN/Bundle.pm Since this is not actually an error condition, spit to stdout instead, and only under --verbose. See http://nntp.perl.org/group/perl.perl5.porters/234436.
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-221-5/+0
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* Remove some remnants of x2p, which was removed by commit e5a8a0fbd7Steve Hay2015-02-181-1/+1
| | | | | | | | | | | | | | References to PERL_FOR_X2P probably have to stay in case any third-party code is #defining it. Likewise, NO_PERL_TYPEDEFS in vms/vmsish.h has to stay because it actually is used by App::a2p. Cross/Makefile.SH.patch still needs regenerating since it contains references to x2p in the top-level Makefile.SH which were removed by e5a8a0fbd7. A few other references to x2p/a2p/find2p/s2p still remain, which I am less sure about removing, plus some others in documentation which should stay anyway.
* In install_lib.pl, no need to Config->import for the relocatableinc setup.Nicholas Clark2013-07-231-0/+3
| | | | | | | | | | require Config; within the BEGIN block instead of using it outside it to save creating one implicit BEGIN block, and running its import twice. Remove the require 5.004; as the require of Config will fail if running with anything other than the version about to be installed. Note in installperl and installman that install_lib.pl imports Config.
* Move the wrapper for File::Path::mkpath() to install_lib.plNicholas Clark2013-07-231-2/+1
| | | | | installperl and installman call File::Path::mkpath with identical arguments and options, so move the repeated code into a single place.
* Move {safe_,}rename() from install{man,perl} into install_lib.plNicholas Clark2013-07-231-15/+1
| | | | | | installman's rename() was identical to installperl's safe_rename() in all but name (and whitespace), so de-duplicate by moving the code to install_lib.pl
* Add a no-op option --strip to installman.Nicholas Clark2013-07-131-1/+4
| | | | | | | | This intentionally does nothing. --strip for installperl instructs it to strip the installed binaries. Hence by permitting installman to accept --strip without error Makefile.SH can be simplified, as it's possible to pass identical flags to both install scripts.
* Refactor installman's option handling to use Getopt::Long's "multiple names".Nicholas Clark2013-07-131-4/+2
| | | | | | | Previously installman specified synonyms for options as distinct options, and then used explicit code to merge them. Also add -h and -? as synonyms for --help.
* 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