Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tiled Display Video
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Tiled Display Video
Commits
7eff1517
Commit
7eff1517
authored
5 years ago
by
Simon Oehrl
Browse files
Options
Downloads
Patches
Plain Diff
Load plugin list from repo
parent
a15d04a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+16
-6
16 additions, 6 deletions
setup.sh
with
16 additions
and
6 deletions
setup.sh
+
16
−
6
View file @
7eff1517
...
...
@@ -55,11 +55,22 @@ function initial_setup() {
}
function
manage_plugins
()
{
clear
echo
"Loading plugin list..."
mkdir
-p
Plugins
path
=
$(
git config
-f
.gitmodules
--get
"submodule.Plugins/unrealplugins.path"
)
if
[
$?
-ne
0
]
then
git submodule add
-f
-b
master https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/unrealplugins.git Plugins/unrealplugins
else
cd
Plugins/unrealplugins
git pull
cd
../..
fi
SAVEIFS
=
$IFS
IFS
=
$'
\n
'
plugin_list
=(
$(
git config
-f
Plugins/
U
nreal
P
lugins/plugins.config
--name-only
--get-regexp
".*.name"
)
)
plugin_list
=(
$(
git config
-f
Plugins/
u
nreal
p
lugins/plugins.config
--name-only
--get-regexp
".*.name"
)
)
IFS
=
$SAVEIFS
declare
-a
plugin_ids
...
...
@@ -71,13 +82,13 @@ function manage_plugins() {
do
plugin_id
=
${
plugin_list
[
$i
]%.name
}
plugin_ids+
=(
"
$plugin_id
"
)
plugin_name
=
$(
git config
-f
Plugins/
U
nreal
P
lugins/plugins.config
--get
"
$plugin_id
.name"
)
plugin_name
=
$(
git config
-f
Plugins/
u
nreal
p
lugins/plugins.config
--get
"
$plugin_id
.name"
)
plugins+
=(
"
${
plugin_name
}
"
)
plugin_repositories+
=(
$(
git config
-f
Plugins/
U
nreal
P
lugins/plugins.config
--get
"
$plugin_id
.url"
)
)
plugin_repositories+
=(
$(
git config
-f
Plugins/
u
nreal
p
lugins/plugins.config
--get
"
$plugin_id
.url"
)
)
if
[
"
$1
"
==
"initial_setup"
]
then
branch
=(
$(
git config
-f
Plugins/
U
nreal
P
lugins/plugins.config
--get
"
$plugin_id
.default-branch"
)
)
branch
=(
$(
git config
-f
Plugins/
u
nreal
p
lugins/plugins.config
--get
"
$plugin_id
.default-branch"
)
)
if
[
$?
==
0
]
then
plugin_branches+
=(
"
$branch
"
)
...
...
@@ -173,7 +184,6 @@ function manage_plugins() {
if
[
"
$cancel
"
!=
true
]
then
clear
mkdir
-p
Plugins
echo
"Adding/updating plugins..."
for
i
in
${
!plugins[@]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment