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
b362c08d
Commit
b362c08d
authored
Apr 12, 2021
by
Ed Reel
Committed by
GitHub
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert crew executable location but keep all other changes (#5604)
parent
ff31a818
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
crew
crew
+4
-4
install.sh
install.sh
+1
-1
lib/const.rb
lib/const.rb
+1
-1
No files found.
bin/
crew
→
crew
View file @
b362c08d
#
!/usr/bin/env ruby
#
!/usr/bin/env ruby
require_relative
'
../
lib/color'
require_relative
'lib/color'
#
Disallow
sudo
#
Disallow
sudo
abort
'Chromebrew should not be run as root.'
.
lightred
if
Process
.
uid
==
0
abort
'Chromebrew should not be run as root.'
.
lightred
if
Process
.
uid
==
0
...
@@ -10,8 +10,8 @@ require 'uri'
...
@@ -10,8 +10,8 @@ require 'uri'
require
'digest/sha2'
require
'digest/sha2'
require
'json'
require
'json'
require
'fileutils'
require
'fileutils'
require_relative
'
../
lib/const'
require_relative
'lib/const'
require_relative
'
../
lib/util'
require_relative
'lib/util'
#
Add
lib
to
LOAD_PATH
#
Add
lib
to
LOAD_PATH
$
LOAD_PATH
.
unshift
"#{CREW_LIB_PATH}lib"
$
LOAD_PATH
.
unshift
"#{CREW_LIB_PATH}lib"
...
@@ -72,7 +72,7 @@ ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}"
...
@@ -72,7 +72,7 @@ ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}"
CURL
=
ENV
[
'CURL'
]
||
'curl'
CURL
=
ENV
[
'CURL'
]
||
'curl'
#
Parse
arguments
using
docopt
#
Parse
arguments
using
docopt
require_relative
'
../
lib/docopt'
require_relative
'lib/docopt'
begin
begin
args
=
Docopt
::
docopt
(
DOC
)
args
=
Docopt
::
docopt
(
DOC
)
args
[
'<name>'
]
=
args
[
'<name>'
].
map
{
|
arg
|
arg
.
gsub
(
'-'
,
'_'
)
}
if
args
[
'<name>'
]
args
[
'<name>'
]
=
args
[
'<name>'
].
map
{
|
arg
|
arg
.
gsub
(
'-'
,
'_'
)
}
if
args
[
'<name>'
]
...
...
install.sh
View file @
b362c08d
...
@@ -187,7 +187,7 @@ done
...
@@ -187,7 +187,7 @@ done
sudo
ldconfig &> /dev/null
||
true
sudo
ldconfig &> /dev/null
||
true
# create symlink to 'crew' in ${CREW_PREFIX}/bin/
# create symlink to 'crew' in ${CREW_PREFIX}/bin/
ln
-sfv
"
../lib/crew/bin
/crew"
"
${
CREW_PREFIX
}
/bin/"
ln
-sfv
"
lib/crew
/crew"
"
${
CREW_PREFIX
}
/bin/"
# prepare sparse checkout .rb packages directory and do it
# prepare sparse checkout .rb packages directory and do it
cd
"
${
CREW_LIB_PATH
}
"
cd
"
${
CREW_LIB_PATH
}
"
...
...
lib/const.rb
View file @
b362c08d
# Defines common constants used in different parts of crew
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.8.
0
'
CREW_VERSION
=
'1.8.
1
'
ARCH_ACTUAL
=
`uname -m`
.
strip
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
# This helps with virtualized builds on aarch64 machines
...
...
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