Hi,
I notice the following in the MakeMaker docs (version 5.91_01):
INSTALLDIRS set to
perl site vendor
PREFIX SITEPREFIX VENDORPREFIX
INST_ARCHLIB INSTALLARCHLIB INSTALLSITEARCH
INSTALLVENDORARCH
INST_LIB INSTALLPRIVLIB INSTALLSITELIB
INSTALLVENDORLIB
INST_BIN INSTALLBIN INSTALLSITEBIN
INSTALLVENDORBIN
INST_SCRIPT INSTALLSCRIPT INSTALLSCRIPT INSTALLSCRIPT
INST_MAN1DIR INSTALLMAN1DIR INSTALLSITEMAN1DIR
INSTALLVENDORMAN1DIR
INST_MAN3DIR INSTALLMAN3DIR INSTALLSITEMAN3DIR
INSTALLVENDORMAN3DIR
I'm curious about why INST_SCRIPT doesn't have different values in the
three columns. Is this why things like LWP's "HEAD" script are
installing to /usr/bin on OS X instead of to /usr/local/bin?
In my case, I'm writing a prompt like the following, but I suspect
there's a better way to get the destination directory so that the user
could override it with INST_SCRIPT=/foo or something. Is there some way
to get this value from MakeMaker instead of from Config?
if (prompt("Do you want to install the command-line script
'categorizer' ".
"to $Config::Config{installscript}?", 'n') =~ /^y/i) {
$options{EXE_FILES} = [qw(eg/categorizer)];
}
-Ken
- Re: INSTALLSCRIPT doesn't have 'site', 'vendor' values? Ken Williams
- Re: INSTALLSCRIPT doesn't have 'site', 'vendor' val... Soren A
- Re: INSTALLSCRIPT doesn't have 'site', 'vendor' val... Michael G Schwern
- Re: INSTALLSCRIPT doesn't have 'site', 'vendor'... Ken Williams
- Re: INSTALLSCRIPT doesn't have 'site', 'ven... Michael G Schwern
- Re: INSTALLSCRIPT doesn't have 'site', 'ven... Andreas J. Koenig
- Re: INSTALLSCRIPT doesn't have 'site', ... Ken Williams
- Re: INSTALLSCRIPT doesn't have 'si... Michael G Schwern
- Re: INSTALLSCRIPT doesn't have... Ken Williams
