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
0265a53c
Commit
0265a53c
authored
Sep 02, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 451707: Provide a --version option to checksetup.pl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent
a7870933
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
checksetup.pl
checksetup.pl
+8
-2
No files found.
checksetup.pl
View file @
0265a53c
...
...
@@ -66,7 +66,7 @@ $ENV{'HTTP_ACCEPT_LANGUAGE'} ||= get_console_locale();
my
%
switch
;
GetOptions
(
\%
switch
,
'help|h|?'
,
'check-modules'
,
'no-templates|t'
,
'verbose|v|no-silent'
,
'make-admin=s'
,
'reset-password=s'
);
'reset-password=s'
,
'version|V'
);
# Print the help message if that switch was selected.
pod2usage
({
-
verbose
=>
1
,
-
exitval
=>
1
})
if
$switch
{
'help'
};
...
...
@@ -77,6 +77,7 @@ my $answers_file = $ARGV[0];
my
$silent
=
$answers_file
&&
!
$switch
{
'verbose'
};
print
(
install_string
(
'header'
,
get_version_and_os
())
.
"\n"
)
unless
$silent
;
exit
if
$switch
{
'version'
};
# Check required --MODULES--
my
$module_results
=
check_requirements
(
!
$silent
);
Bugzilla::Install::Requirements::
print_module_instructions
(
...
...
@@ -242,7 +243,7 @@ checksetup.pl - A do-it-all upgrade and installation script for Bugzilla.
=head1 SYNOPSIS
./checksetup.pl [--help|--check-modules]
./checksetup.pl [--help|--check-modules
|--version
]
./checksetup.pl [SCRIPT [--verbose]] [--no-templates|-t]
[--make-admin=user@domain.com]
[--reset-password=user@domain.com]
...
...
@@ -288,6 +289,11 @@ by developers to speed up checksetup.) Use this switch at your own risk.
Output results of SCRIPT being processed.
=item B<--version>
Display the version of Bugzilla, Perl, and some info about the
system that Bugzilla is being installed on, and then exit.
=back
=head1 DESCRIPTION
...
...
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