Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
a77a8870
Commit
a77a8870
authored
Sep 25, 2017
by
Ed Reel
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1212 from jam7/refactor/xz-mt
Change default option for xz to enable multi threads
parents
a0fad581
ef2a9302
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
crew
crew
+8
-0
lib/const.rb
lib/const.rb
+0
-8
No files found.
crew
View file @
a77a8870
...
@@ -37,6 +37,14 @@ Usage:
...
@@ -37,6 +37,14 @@ Usage:
version
0.4.3
version
0.4.3
DOCOPT
DOCOPT
#
Set
XZ_OPT
environment
variable
for
build
command
.
#
If
CREW_XZ_OPT
is
defined
,
use
it
by
default
.
Use
`-
7
e
`,
otherwise
.
if
ENV
[
"CREW_XZ_OPT"
].
to_s
==
''
ENV
[
"XZ_OPT"
]
=
"-7e -T #{CREW_NPROC}"
else
ENV
[
"XZ_OPT"
]
=
ENV
[
"CREW_XZ_OPT"
]
end
#
Parse
arguments
using
docopt
#
Parse
arguments
using
docopt
require_relative
'lib/docopt'
require_relative
'lib/docopt'
begin
begin
...
...
lib/const.rb
View file @
a77a8870
...
@@ -26,12 +26,4 @@ CREW_NOT_COMPRESS = ENV["CREW_NOT_COMPRESS"]
...
@@ -26,12 +26,4 @@ CREW_NOT_COMPRESS = ENV["CREW_NOT_COMPRESS"]
# Set CREW_NOT_STRIP from environment variable
# Set CREW_NOT_STRIP from environment variable
CREW_NOT_STRIP
=
ENV
[
"CREW_NOT_STRIP"
]
CREW_NOT_STRIP
=
ENV
[
"CREW_NOT_STRIP"
]
# Set XZ_OPT environment variable for build command.
# If CREW_XZ_OPT is defined, use it by default. Use `-7e`, otherwise.
if
ENV
[
"CREW_XZ_OPT"
].
to_s
==
''
ENV
[
"XZ_OPT"
]
=
"-7e"
else
ENV
[
"XZ_OPT"
]
=
ENV
[
"CREW_XZ_OPT"
]
end
USER
=
`whoami`
.
chomp
USER
=
`whoami`
.
chomp
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