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
99c5699c
Commit
99c5699c
authored
Sep 18, 2014
by
Michał Siwek
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #29 from ryanmjacobs/wget_continue
Don't re-download tarballs every time
parents
34ef3b1c
bc32ed98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
crew
crew
+1
-1
install.sh
install.sh
+24
-24
No files found.
crew
View file @
99c5699c
...
@@ -153,7 +153,7 @@ def download
...
@@ -153,7 +153,7 @@ def download
sha1sum
=
@pkg
.
binary_sha1
[
@device
[
:architecture
]]
sha1sum
=
@pkg
.
binary_sha1
[
@device
[
:architecture
]]
end
end
Dir
.
chdir
CREW_BREW_DIR
do
Dir
.
chdir
CREW_BREW_DIR
do
system
(
'wget'
,
'--content-disposition'
,
'--no-check-certificate'
,
'-N'
,
url
,
'-O'
,
filename
)
system
(
'wget'
,
'--cont
inue'
,
'--cont
ent-disposition'
,
'--no-check-certificate'
,
'-N'
,
url
,
'-O'
,
filename
)
abort
'Checksum mismatch :/ try again'
unless
Digest
::
SHA1
.
hexdigest
(
File
.
read
(
"./
#{
filename
}
"
)
)
==
sha1sum
abort
'Checksum mismatch :/ try again'
unless
Digest
::
SHA1
.
hexdigest
(
File
.
read
(
"./
#{
filename
}
"
)
)
==
sha1sum
end
end
puts
"Archive downloaded"
puts
"Archive downloaded"
...
...
install.sh
View file @
99c5699c
...
@@ -39,7 +39,7 @@ case "$architecture" in
...
@@ -39,7 +39,7 @@ case "$architecture" in
;;
;;
esac
esac
wget
--no-check-certificate
--content-disposition
$link
-O
$tarname
wget
--
continue
--
no-check-certificate
--content-disposition
$link
-O
$tarname
#extract and install ruby
#extract and install ruby
echo
"Extracting ruby (this may take a while)..."
echo
"Extracting ruby (this may take a while)..."
...
@@ -50,13 +50,13 @@ mv ./dlist $CREW_CONFIG_PATH/meta/ruby.directorylist
...
@@ -50,13 +50,13 @@ mv ./dlist $CREW_CONFIG_PATH/meta/ruby.directorylist
mv
./filelist
$CREW_CONFIG_PATH
/meta/ruby.filelist
mv
./filelist
$CREW_CONFIG_PATH
/meta/ruby.filelist
#download, prepare and install chromebrew
#download, prepare and install chromebrew
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/crew
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/crew
chmod
+x crew
chmod
+x crew
sudo mv
crew
$CREW_PREFIX
/bin
sudo mv
crew
$CREW_PREFIX
/bin
#install crew library
#install crew library
cd
$CREW_LIB_PATH
cd
$CREW_LIB_PATH
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/lib/package.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/lib/package.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/lib/package_helpers.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/lib/package_helpers.rb
#create the device.json file
#create the device.json file
cd
$CREW_CONFIG_PATH
cd
$CREW_CONFIG_PATH
touch
device.json
touch
device.json
...
@@ -72,26 +72,26 @@ echo "}" >> device.json
...
@@ -72,26 +72,26 @@ echo "}" >> device.json
#download git and its dependencies .rb package files
#download git and its dependencies .rb package files
cd
$CREW_PACKAGES_PATH
cd
$CREW_PACKAGES_PATH
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/git.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/git.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/zlibpkg.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/zlibpkg.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/libssh2.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/libssh2.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/perl.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/perl.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/openssl.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/openssl.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/curl.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/curl.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/expat.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/expat.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gettext.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gettext.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/python.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/python.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/readline.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/readline.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/ruby.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/ruby.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/buildessential.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/buildessential.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gcc.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gcc.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/binutils.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/binutils.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/make.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/make.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/mpc.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/mpc.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/mpfr.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/mpfr.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gmp.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/gmp.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/glibc.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/glibc.rb
wget
--no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/linuxheaders.rb
wget
-
N
--continue
-
-no-check-certificate
https://raw.github.com/skycocker/chromebrew/master/packages/linuxheaders.rb
#install readline for ruby
#install readline for ruby
(
echo
y
;
)
|
sudo
crew
install
readline
(
echo
y
;
)
|
sudo
crew
install
readline
...
...
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