Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
04ce200f
Commit
04ce200f
authored
Sep 16, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 445875: Make it possible to open a CPAN shell with install-module
Patch by Marcus Pallinger <mpal1+bugzilla@ieee.org> r=mkanat, a=mkanat
parent
540d08b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
install-module.pl
install-module.pl
+11
-1
No files found.
install-module.pl
View file @
04ce200f
...
...
@@ -43,7 +43,7 @@ use Pod::Usage;
our
%
switch
;
GetOptions
(
\%
switch
,
'all|a'
,
'upgrade-all|u'
,
'show-config|s'
,
'global|g'
,
'help|h'
);
'
shell'
,
'
help|h'
);
pod2usage
({
-
verbose
=>
1
})
if
$switch
{
'help'
};
...
...
@@ -69,6 +69,11 @@ if (substr(CPAN->VERSION, 0, 3) < 1.8) {
print
"* You can upgrade CPAN by doing: $^X install-module.pl CPAN\n"
;
}
if
(
$switch
{
'shell'
})
{
CPAN::
shell
();
exit
;
}
if
(
$switch
{
'all'
}
||
$switch
{
'upgrade-all'
})
{
my
@modules
;
if
(
$switch
{
'upgrade-all'
})
{
...
...
@@ -114,6 +119,7 @@ This script does not run on Windows.
./install-module.pl --all [--global]
./install-module.pl --upgrade-all [--global]
./install-module.pl --show-config
./install-module.pl --shell
Do "./install-module.pl --help" for more information.
...
...
@@ -154,6 +160,10 @@ have them installed.
Prints out the CPAN configuration in raw Perl format. Useful for debugging.
=item B<--shell>
Starts a CPAN shell using the configuration of F<install-module.pl>.
=item B<--help>
Shows this help.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment