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
e47049d7
Commit
e47049d7
authored
Aug 01, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 346545: checksetup should show the name and version of the OS it's being run on
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) r=colin, a=myk
parent
a5172adf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
checksetup.pl
checksetup.pl
+14
-2
No files found.
checksetup.pl
View file @
e47049d7
...
...
@@ -224,6 +224,7 @@ use 5.008;
use
File::
Basename
;
use
Getopt::
Long
qw(:config bundling)
;
use
Pod::
Usage
;
use
POSIX
();
use
Safe
;
BEGIN
{
chdir
dirname
(
$0
);
}
...
...
@@ -269,8 +270,19 @@ our %answer = %{read_answers_file()};
my
$silent
=
scalar
(
keys
%
answer
)
&&
!
$switch
{
'verbose'
};
# Display version information
printf
"\n*** This is Bugzilla "
.
BUGZILLA_VERSION
.
" on perl %vd ***\n"
,
$
^
V
unless
$silent
;
unless
(
$silent
)
{
printf
"\n* This is Bugzilla "
.
BUGZILLA_VERSION
.
" on perl %vd\n"
,
$
^
V
;
my
@os_details
=
POSIX::
uname
;
# 0 is the name of the OS, 2 is the major version,
my
$os_name
=
$os_details
[
0
]
.
' '
.
$os_details
[
2
];
if
(
ON_WINDOWS
)
{
require
Win32
;
$os_name
=
Win32::
GetOSName
();
}
# 3 is the minor version.
print
"* Running on $os_name $os_details[3]\n"
}
# Check required --MODULES--
my
$module_results
=
check_requirements
(
!
$silent
);
...
...
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