}
chdir $poddir || die "Unable to cd to $poddir directory!\n$!\n";
+ print STDERR "chdir $poddir\n";
# We insist on using the current version of pod2man in case there
# are enhancements or changes from previous installed versions.
# installed by occult means.)
$pod2man = "../perl -I ../lib ../pod/pod2man --section=$manext --official";
- mkpath($mandir, 1, 0777); # In File::Path
+ mkpath($mandir, 1, 0777) unless $notify; # In File::Path
# Make a list of all the .pm and .pod files in the directory. We will
# always run pod2man from the lib directory and feed it the full pathname
# of the pod. This might be useful for pod2man someday.
}
}
chdir "$builddir" || die "Unable to cd back to $builddir directory!\n$!\n";
+ print STDERR "chdir $builddir\n";
}
sub lsmodpods {
#!./perl
BEGIN { @INC=('./lib', '../lib') }
use File::Find;
-use File::Path qw(mkpath);
+use File::Path ();
use Config;
use subs qw(unlink rename link chmod);
+# override the ones in the rest of the script
+sub mkpath
+{
+ File::Path::mkpath(@_) unless $nonono;
+}
+
$mainperldir = "/usr/bin";
$exe_ext = $Config{exe_ext};
$installbin || die "No installbin directory in config.sh\n";
-d $installbin || mkpath($installbin, 1, 0777);
--d $installbin || die "$installbin is not a directory\n";
--w $installbin || die "$installbin is not writable by you\n"
+-d $installbin || $nonono || die "$installbin is not a directory\n";
+-w $installbin || $nonono || die "$installbin is not writable by you\n"
unless $installbin =~ m#^/afs/# || $nonono;
-x 'perl' . $exe_ext || die "perl isn't executable!\n";
sub installlib {
my $dir = $File::Find::dir;
$dir =~ s#^\.(?![^/])/?##;
+ local($depth) = $dir ? "lib/$dir" : "lib";
my $name = $_;
&unlink("$installarchlib/$name");
}
system "cmp", "-s", $_, "$installlib/$name";
- if ($?) {
+ if ($? || $nonono) {
&unlink("$installlib/$name");
mkpath("$installlib/$dir", 1, 0777);
cp_if_diff($_, "$installlib/$name");
my($from,$to)=@_;
-f $from || die "$0: $from not found";
system "cmp", "-s", $from, $to;
- if ($?) {
+ if ($? || $nonono) {
my ($atime, $mtime);
unlink($to); # In case we don't have write permissions.
+ if ($nonono) {
+ $from = $depth . "/" . $from if $depth;
+ }
cmd("cp $from $to");
# Restore timestamps if it's a .a library.
if ($to =~ /\.a$/) {