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
bbfadb2f
Commit
bbfadb2f
authored
Jun 21, 2013
by
jkarni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32 from yarko/patch-1
create-dev-env.sh: if run from repo, set $BASE appropriately
parents
bba626f4
dbcef7d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
scripts/create-dev-env.sh
+15
-1
No files found.
scripts/create-dev-env.sh
View file @
bbfadb2f
...
...
@@ -96,13 +96,27 @@ clone_repos() {
fi
}
set_base_default
()
{
# if PROJECT_HOME not set
# 2 possibilities: this is from cloned repo, or not
# this script is in "./scripts" if a git clone
this_repo
=
$(
cd
"
${
BASH_SOURCE
%/*
}
/.."
&&
pwd
)
if
[[
"
${
this_repo
##*/
}
"
=
"edx-platform"
&&
-d
"
$this_repo
/.git"
]]
;
then
# set BASE one-up from this_repo;
echo
"
${
this_repo
%/*
}
"
else
echo
"
$HOME
/edx_all"
fi
}
### START
PROG
=
${
0
##*/
}
# Adjust this to wherever you'd like to place the codebase
BASE
=
"
${
PROJECT_HOME
:-
$
HOME
}
/edx_all
"
BASE
=
"
${
PROJECT_HOME
:-$
(
set_base_default
)}
"
# Use a sensible default (~/.virtualenvs) for your Python virtualenvs
# unless you've already got one set up with virtualenvwrapper.
...
...
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