Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3f1612ac
Commit
3f1612ac
authored
Feb 06, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2497 from edx/db/brew-bundle-install-script
Teach install-system-req.sh about `brew bundle`
parents
c3e11842
decda748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
scripts/install-system-req.sh
+7
-17
No files found.
scripts/install-system-req.sh
View file @
3f1612ac
...
...
@@ -18,7 +18,6 @@ output() {
SELF_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
REQUIREMENTS_DIR
=
"
$SELF_DIR
/../requirements/system"
BREW_FILE
=
$REQUIREMENTS_DIR
/
"mac_os_x/brew-formulas.txt"
APT_REPOS_FILE
=
$REQUIREMENTS_DIR
/
"ubuntu/apt-repos.txt"
APT_PKGS_FILE
=
$REQUIREMENTS_DIR
/
"ubuntu/apt-packages.txt"
...
...
@@ -31,7 +30,7 @@ case `uname -s` in
distro
=
`
lsb_release
-cs
`
case
$distro
in
#Tries to install the same
#Tries to install the same
squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring
)
output
"Installing Debian family requirements"
...
...
@@ -69,21 +68,12 @@ EO
fi
output
"Installing OSX requirements"
# if [[ ! -r $BREW_FILE ]]; then
# error "$BREW_FILE does not exist, please include the brew formulas file in the edx-platform/Brewfile"
# exit 1
# fi
# for some reason openssl likes to be installed by itself first
brew install openssl
# brew errors if the package is already installed
for
pkg
in
$(
cat
$BREW_FILE
)
;
do
grep
$pkg
<
(
brew list
)
&>/dev/null
||
{
output
"Installing
$pkg
"
brew install
$pkg
}
done
if
[[
-r
Brewfile
]]
;
then
brew bundle
else
error
"Brewfile does not exist"
exit
1
fi
# paths where brew likes to install python scripts
PATH
=
/usr/local/share/python:/usr/local/bin:
$PATH
...
...
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