Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
60929436
Commit
60929436
authored
Jan 09, 2017
by
yoogx
Browse files
* Add --tag= parameter to fetch a specific tag
parent
46fa494e
Changes
1
Hide whitespace changes
Inline
Side-by-side
support/get_runtimes.sh
View file @
60929436
...
...
@@ -22,6 +22,7 @@ if test $# -eq 0; then
fi
repository
=
"https://github.com/OpenAADL"
tag
=
""
workdir
=
"
`
pwd
`
"
scriptdir
=
"
`
dirname
$0
`
"
;
cd
"
${
scriptdir
}
"
;
scriptdir
=
"
`
pwd
`
"
...
...
@@ -33,11 +34,16 @@ while test $# -ne 0; do
case
${
r
}
in
--root_url
=
*
)
repository
=
`
echo
"
$1
"
|
sed
's/[-_a-zA-Z0-9]*=//'
`
;;
--tag
=
*
)
tag
=
`
echo
"
$1
"
|
sed
's/[-_a-zA-Z0-9]*=//'
`
;;
*
aadlib
*
)
cd
${
scriptdir
}
/../resources/runtime
||
exit
2
rm
-rf
AADLib 2>/dev/null
git clone
${
repository
}
/AADLib.git aadlib
\
||
exit
2
if
test
!
-z
"
${
tag
}
"
;
then
git checkout
${
tag
}
-b
${
tag
}
fi
;
;;
*
po
*
hi
*
ada
*
)
...
...
@@ -45,6 +51,9 @@ while test $# -ne 0; do
rm
-rf
polyorb-hi-ada 2>/dev/null
git clone
${
repository
}
/polyorb-hi-ada.git
\
||
exit
2
if
test
!
-z
"
${
tag
}
"
;
then
git checkout
${
tag
}
-b
${
tag
}
fi
;
;;
*
po
*
hi
*
c
*
)
...
...
@@ -52,6 +61,9 @@ while test $# -ne 0; do
rm
-rf
polyorb-hi-c 2>/dev/null
git clone
${
repository
}
/polyorb-hi-c.git
\
||
exit
2
if
test
!
-z
"
${
tag
}
"
;
then
git checkout
${
tag
}
-b
${
tag
}
fi
;
;;
*
pok
*
)
...
...
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