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
38d7ddf0
Commit
38d7ddf0
authored
Jun 26, 2013
by
jkarni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #245 from edx/jkarni/feature/createdevfolder
Greater dir naming flexibility.
parents
c5851d39
fa9a8f4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
scripts/create-dev-env.sh
+11
-7
No files found.
scripts/create-dev-env.sh
View file @
38d7ddf0
...
...
@@ -98,19 +98,23 @@ clone_repos() {
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
%/*
}
"
# See if remote's url is named edx-platform (this works for forks too, but
# not if the name was changed).
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
this_repo
=
$(
basename
$(
git ls-remote
--get-url
2>/dev/null
)
2>/dev/null
)
||
echo
-n
""
if
[[
"x
$this_repo
"
=
"xedx-platform.git"
]]
;
then
# We are in the edx repo and already have git installed. Let git do the
# work of finding base dir:
echo
"
$(
dirname
$(
git rev-parse
--show-toplevel
))
"
else
echo
"
$HOME
/edx_all"
fi
}
### START
PROG
=
${
0
##*/
}
...
...
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