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
5973e860
Commit
5973e860
authored
Sep 17, 2013
by
Michał Siwek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename cbrew to crew
parent
ac777a0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
README.md
README.md
+1
-1
crew
crew
+0
-0
install.sh
install.sh
+22
-22
No files found.
README.md
View file @
5973e860
...
@@ -18,7 +18,7 @@ Download and run the installation script
...
@@ -18,7 +18,7 @@ Download and run the installation script
Usage
Usage
-----
-----
sudo c
b
rew
<command>
<package>
sudo crew
<command>
<package>
Where available commands are:
Where available commands are:
...
...
c
b
rew
→
crew
View file @
5973e860
File moved
install.sh
View file @
5973e860
#chromebrew directories
#chromebrew directories
C
B
REW_PREFIX
=
/usr/local
CREW_PREFIX
=
/usr/local
C
BREW_LIB_PATH
=
$CBREW_PREFIX
/lib/cb
rew/
C
REW_LIB_PATH
=
$CREW_PREFIX
/lib/c
rew/
C
BREW_CONFIG_PATH
=
$CBREW_PREFIX
/etc/cb
rew/
C
REW_CONFIG_PATH
=
$CREW_PREFIX
/etc/c
rew/
C
BREW_BREW_DIR
=
$CBREW_PREFIX
/tmp/cb
rew/
C
REW_BREW_DIR
=
$CREW_PREFIX
/tmp/c
rew/
C
BREW_PACKAGES_PATH
=
$CB
REW_LIB_PATH
/packages
C
REW_PACKAGES_PATH
=
$C
REW_LIB_PATH
/packages
user
=
$(
whoami
)
user
=
$(
whoami
)
#prepare directories
#prepare directories
sudo mkdir
-p
$C
BREW_LIB_PATH
&&
sudo chown
-R
$user
:
$user
$CB
REW_LIB_PATH
sudo mkdir
-p
$C
REW_LIB_PATH
&&
sudo chown
-R
$user
:
$user
$C
REW_LIB_PATH
sudo mkdir
-p
$C
BREW_CONFIG_PATH
&&
sudo chown
-R
$user
:
$user
$CB
REW_CONFIG_PATH
sudo mkdir
-p
$C
REW_CONFIG_PATH
&&
sudo chown
-R
$user
:
$user
$C
REW_CONFIG_PATH
sudo mkdir
-p
$C
BREW_CONFIG_PATH
/meta
&&
sudo chown
-R
$user
:
$user
$CB
REW_CONFIG_PATH
/meta
sudo mkdir
-p
$C
REW_CONFIG_PATH
/meta
&&
sudo chown
-R
$user
:
$user
$C
REW_CONFIG_PATH
/meta
sudo mkdir
-p
$C
BREW_BREW_DIR
&&
sudo chown
-R
$user
:
$user
$CB
REW_BREW_DIR
sudo mkdir
-p
$C
REW_BREW_DIR
&&
sudo chown
-R
$user
:
$user
$C
REW_BREW_DIR
sudo mkdir
-p
$C
BREW_PACKAGES_PATH
&&
sudo chown
-R
$user
:
$user
$CB
REW_PACKAGES_PATH
sudo mkdir
-p
$C
REW_PACKAGES_PATH
&&
sudo chown
-R
$user
:
$user
$C
REW_PACKAGES_PATH
#cd into the brew directory, everything will happen there
#cd into the brew directory, everything will happen there
cd
$C
B
REW_BREW_DIR
cd
$CREW_BREW_DIR
#download ruby
#download ruby
echo
"Downloading ruby..."
echo
"Downloading ruby..."
...
@@ -35,19 +35,19 @@ echo "Extracting ruby (this may take a while)..."
...
@@ -35,19 +35,19 @@ echo "Extracting ruby (this may take a while)..."
tar
-xf
ruby-2.0.0p247-chromeos-
$architecture
.tar.gz
tar
-xf
ruby-2.0.0p247-chromeos-
$architecture
.tar.gz
echo
"Installing ruby (this may take a while)..."
echo
"Installing ruby (this may take a while)..."
sudo cp
-r
./usr/
*
/usr
sudo cp
-r
./usr/
*
/usr
mv
./dlist
$C
B
REW_CONFIG_PATH
/meta/ruby.directorylist
mv
./dlist
$CREW_CONFIG_PATH
/meta/ruby.directorylist
mv
./filelist
$C
B
REW_CONFIG_PATH
/meta/ruby.filelist
mv
./filelist
$CREW_CONFIG_PATH
/meta/ruby.filelist
#download, prepare and install chromebrew
#download, prepare and install chromebrew
wget https://raw.github.com/skycocker/chromebrew/master/c
b
rew
wget https://raw.github.com/skycocker/chromebrew/master/crew
chmod
+x c
b
rew
chmod
+x crew
sudo mv
c
brew
$CB
REW_PREFIX
/bin
sudo mv
c
rew
$C
REW_PREFIX
/bin
#install c
b
rew library
#install crew library
cd
$C
B
REW_LIB_PATH
cd
$CREW_LIB_PATH
wget https://raw.github.com/skycocker/chromebrew/master/lib/package.rb
wget https://raw.github.com/skycocker/chromebrew/master/lib/package.rb
wget https://raw.github.com/skycocker/chromebrew/master/lib/package_helpers.rb
wget https://raw.github.com/skycocker/chromebrew/master/lib/package_helpers.rb
#create the device.json file
#create the device.json file
cd
$C
B
REW_CONFIG_PATH
cd
$CREW_CONFIG_PATH
touch
device.json
touch
device.json
echo
"{"
>
device.json
echo
"{"
>
device.json
echo
' "architecture": "'
$architecture
'",'
>>
device.json
echo
' "architecture": "'
$architecture
'",'
>>
device.json
...
@@ -60,7 +60,7 @@ echo ' ]' >> device.json
...
@@ -60,7 +60,7 @@ echo ' ]' >> device.json
echo
"}"
>>
device.json
echo
"}"
>>
device.json
#download git and its dependencies .rb package files
#download git and its dependencies .rb package files
cd
$C
B
REW_PACKAGES_PATH
cd
$CREW_PACKAGES_PATH
wget https://raw.github.com/skycocker/chromebrew/master/packages/git.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/git.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/zlib.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/zlib.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/libssh2.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/libssh2.rb
...
@@ -72,10 +72,10 @@ wget https://raw.github.com/skycocker/chromebrew/master/packages/gettext.rb
...
@@ -72,10 +72,10 @@ wget https://raw.github.com/skycocker/chromebrew/master/packages/gettext.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/python.rb
wget https://raw.github.com/skycocker/chromebrew/master/packages/python.rb
#install git
#install git
(
echo
y
;
)
|
sudo
c
b
rew
install
git
(
echo
y
;
)
|
sudo
crew
install
git
#prepare sparse checkout .rb packages directory and do it
#prepare sparse checkout .rb packages directory and do it
cd
$C
B
REW_LIB_PATH
cd
$CREW_LIB_PATH
git init
git init
git remote add
-f
origin https://github.com/skycocker/chromebrew.git
git remote add
-f
origin https://github.com/skycocker/chromebrew.git
git config core.sparsecheckout
true
git config core.sparsecheckout
true
...
...
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