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
aaef18ec
Commit
aaef18ec
authored
Aug 05, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete scripts
parent
095bae1a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
101 deletions
+0
-101
scripts/create-dev-env.sh
+0
-0
scripts/install-system-req.sh
+0
-101
No files found.
scripts/create-dev-env.sh
deleted
100755 → 0
View file @
095bae1a
This diff is collapsed.
Click to expand it.
scripts/install-system-req.sh
deleted
100755 → 0
View file @
095bae1a
#!/usr/bin/env bash
# posix compliant sanity check
if
[
-z
$BASH
]
||
[
$BASH
=
"/bin/sh"
]
;
then
echo
"Please use the bash interpreter to run this script"
exit
1
fi
error
()
{
printf
'\E[31m'
;
echo
"
$@
"
;
printf
'\E[0m'
}
output
()
{
printf
'\E[36m'
;
echo
"
$@
"
;
printf
'\E[0m'
}
### START
SELF_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
REQUIREMENTS_DIR
=
"
$SELF_DIR
/../requirements/system"
APT_REPOS_FILE
=
$REQUIREMENTS_DIR
/
"ubuntu/apt-repos.txt"
APT_PKGS_FILE
=
$REQUIREMENTS_DIR
/
"ubuntu/apt-packages.txt"
case
`
uname
-s
`
in
[
Ll]inux
)
command
-v
lsb_release &>/dev/null
||
{
error
"Please install lsb-release."
exit
1
}
distro
=
`
lsb_release
-cs
`
case
$distro
in
#Tries to install the same
squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring
)
output
"Installing Debian family requirements"
# add repositories
cat
$APT_REPOS_FILE
| xargs
-n
1
sudo
add-apt-repository
-y
sudo
apt-get
-yq
update
sudo
DEBIAN_FRONTEND
=
noninteractive apt-get
-yq
install gfortran graphviz
\
libgraphviz-dev graphviz-dev libatlas-dev libblas-dev
# install packages listed in APT_PKGS_FILE
cat
$APT_PKGS_FILE
| xargs
sudo
DEBIAN_FRONTEND
=
noninteractive apt-get
-yq
install
;;
*
)
error
"Unsupported distribution -
$distro
"
exit
1
;;
esac
;;
Darwin
)
if
[[
!
-w
/usr/local
]]
;
then
cat
<<
EO
You need to be able to write to /usr/local for
the installation of brew and brew packages.
Either make sure the group you are in (most likely 'staff')
can write to that directory or simply execute the following
and re-run the script:
$
sudo chown -R
$USER
/usr/local
EO
exit
1
fi
output
"Installing OSX requirements"
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
command
-v
pip &>/dev/null
||
{
output
"Installing pip"
easy_install pip
}
if
!
grep
-Eq
^1.7 <
(
virtualenv
--version
2>/dev/null
)
;
then
output
"Installing virtualenv >1.7"
pip install
'virtualenv>1.7'
virtualenvwrapper
fi
command
-v
coffee &>/dev/null
||
{
output
"Installing coffee script"
curl
--insecure
https://npmjs.org/install.sh | sh
npm install
-g
coffee-script
}
;;
*
)
error
"Unsupported platform"
exit
1
;;
esac
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