Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
3935a340
Commit
3935a340
authored
12 years ago
by
Max Howell
Browse files
Options
Downloads
Patches
Plain Diff
`brew -c1` one line configuration summary
At your option: `brew --config -1`.
parent
8a9073fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/cmd/--config.rb
+23
-1
23 additions, 1 deletion
Library/Homebrew/cmd/--config.rb
bin/brew
+5
-0
5 additions, 0 deletions
bin/brew
with
28 additions
and
1 deletion
Library/Homebrew/cmd/--config.rb
+
23
−
1
View file @
3935a340
...
...
@@ -2,7 +2,11 @@ require 'hardware'
module
Homebrew
extend
self
def
__config
puts
config_s
if
ARGV
.
first
==
'-1'
dump_c1
else
puts
config_s
end
end
def
llvm
...
...
@@ -134,4 +138,22 @@ module Homebrew extend self
Which Ruby:
#{
describe_ruby
}
EOS
end
def
dump_c1
stuff
=
[]
print
"
#{
HOMEBREW_PREFIX
}
-
#{
HOMEBREW_VERSION
}
"
print
MACOS_FULL_VERSION
print
"-
#{
kernel
}
"
if
MacOS
.
version
<
:lion
print
' '
if
MacOS
::
Xcode
.
version
>
"4.3"
print
MacOS
::
Xcode
.
prefix
unless
MacOS
::
Xcode
.
prefix
.
to_s
=~
%r{^/Applications/Xcode.app}
else
print
MacOS
::
Xcode
.
prefix
unless
MacOS
::
Xcode
.
prefix
.
to_s
=~
%r{^/Developer}
end
print
"
#{
MacOS
::
Xcode
.
version
}
"
print
"-noclt"
unless
MacOS
::
CLT
.
installed?
print
" clang-
#{
clang_build
}
llvm-
#{
llvm
}
"
print
"
#{
MacOS
::
XQuartz
.
prefix
}
-
#{
MacOS
::
XQuartz
.
version
}
"
if
MacOS
::
XQuartz
.
prefix
puts
end
end
This diff is collapsed.
Click to expand it.
bin/brew
+
5
−
0
View file @
3935a340
...
...
@@ -76,6 +76,11 @@ begin
cmd
=
ARGV
.
shift
cmd
=
aliases
[
cmd
]
if
aliases
[
cmd
]
if
cmd
==
'-c1'
cmd
=
'--config'
ARGV
.
unshift
(
'-1'
)
end
# Add example external commands to PATH before checking.
ENV
[
'PATH'
]
+=
":
#{
HOMEBREW_REPOSITORY
}
/Library/Contributions/cmds"
if
which
"brew-
#{
cmd
}
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment