Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
feudal
feudalClientInstaller
Commits
c5281a57
Commit
c5281a57
authored
Apr 07, 2020
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add -f option
parent
973b6ec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
install.sh
install.sh
+15
-5
No files found.
install.sh
View file @
c5281a57
...
...
@@ -11,6 +11,8 @@ CLIENT_BRANCH=master
GOPATH
=
/tmp/go
INSTALLDIR
=
/tmp/feudalClientInstaller
FORCE_CLIENT
=
"No"
# Argument Parsing
function
usage
(){
echo
"-ab|--adapter-branch branch of feudalAdapterLdf to use"
...
...
@@ -19,9 +21,10 @@ function usage(){
echo
$@
while
[
$#
-gt
0
]
;
do
case
"
$1
"
in
-h
|
--help
)
usage
;
exit
0
;
;;
-ab
|
--adapter-branch
)
ADAPTER_BRANCH
=
${
2
}
;
shift
;;
-cb
|
--client-branch
)
CLIENT_BRANCH
=
${
2
}
;
shift
;;
-h
|
--help
)
usage
;
exit
0
;
;;
-ab
|
--adapter-branch
)
ADAPTER_BRANCH
=
${
2
}
;
shift
;;
-cb
|
--client-branch
)
CLIENT_BRANCH
=
${
2
}
;
shift
;;
-f
|
--force-client
)
FORCE_CLIENT
=
"yes"
;
shift
;;
*
)
echo
"usage"
;;
esac
shift
...
...
@@ -57,11 +60,18 @@ case "$RV" in
esac
### Install feudalClient
test
-e
${
INSTALLDIR
}
/feudalClient/feudalClient
||
{
# install client if forced
[
x
${
FORCE_CLIENT
}
==
"xyes"
]
&&
{
rm
-f
${
INSTALLDIR
}
/feudalClient/
}
# install client if not installed
test
-e
${
INSTALLDIR
}
/feudalClient/
||
{
echo
"Updating feudalClient"
cd
${
INSTALLDIR
}
git clone https://git.scc.kit.edu/feudal/feudalClient.git
>
/dev/null 2>&1
}
test
-e
${
INSTALLDIR
}
/feudalClient/
feudalClient
&&
{
test
-e
${
INSTALLDIR
}
/feudalClient/
&&
{
echo
-e
"
\n
building feudalClient from
${
CLIENT_BRANCH
}
"
cd
${
INSTALLDIR
}
cd
feudalClient
...
...
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