summaryrefslogtreecommitdiff
path: root/installman
diff options
context:
space:
mode:
authorAndy Dougherty <doughera.lafayette.edu>1995-12-21 00:01:16 +0000
committerAndy Dougherty <doughera.lafayette.edu>1995-12-21 00:01:16 +0000
commitcb1a09d0194fed9b905df7b04a4bc031d354609d (patch)
treef0c890a5a8f5274873421ac573dfc719188e5eec /installman
parent3712091946b37b5feabcc1f630b32639406ad717 (diff)
downloadperl-cb1a09d0194fed9b905df7b04a4bc031d354609d.tar.gz
This is patch.2b1g to perl5.002beta1.
cd to your perl source directory, and type patch -p1 -N < patch.2b1g This patch is just my packaging of Tom's documentation patches he released as patch.2b1g. Patch and enjoy, Andy Dougherty doughera@lafcol.lafayette.edu Dept. of Physics Lafayette College, Easton PA 18042
Diffstat (limited to 'installman')
-rwxr-xr-xinstallman14
1 files changed, 10 insertions, 4 deletions
diff --git a/installman b/installman
index bc36ca6ac1..aab0c22fc6 100755
--- a/installman
+++ b/installman
@@ -74,7 +74,7 @@ sub runpod2man {
# yet. (The user may have set the $install* Configure variables
# to point to some temporary home, from which the executable gets
# installed by occult means.)
- $pod2man = "../perl -I ../lib ../pod/pod2man";
+ $pod2man = "../perl -I ../lib ../pod/pod2man --section=$manext --official";
&makedir($mandir);
# Make a list of all the .pm and .pod files in the directory. We will
@@ -89,8 +89,13 @@ sub runpod2man {
$manpage =~ s#\.p(m|od)$##;
$manpage =~ s#/#::#g;
$manpage = "${mandir}/${manpage}.${manext}";
- # Print $release $patchlevel stuff? or should pod2man do that?
&cmd("$pod2man $mod > $manpage");
+ if (-z $manpage) {
+ print STDERR "unlink $manpage\n";
+ unless ($notify) {
+ unlink($manpage) || warn "cannot unlink $manpage: $!";
+ }
+ }
}
chdir "$builddir" || die "Unable to cd back to $builddir directory!\n$!\n";
}
@@ -116,9 +121,10 @@ sub cmd {
local($cmd) = @_;
print STDERR " $cmd\n";
unless ($notify) {
- system $cmd;
- warn "Command failed!!!\n" if $?;
+ fork ? wait : exec $cmd;
+ warn "Command failed!!\n" if $?;
}
+ return $? != 0;
}
sub link {