Commit 60929436 authored by yoogx's avatar yoogx
Browse files

* Add --tag= parameter to fetch a specific tag

parent 46fa494e
...@@ -22,6 +22,7 @@ if test $# -eq 0; then ...@@ -22,6 +22,7 @@ if test $# -eq 0; then
fi fi
repository="https://github.com/OpenAADL" repository="https://github.com/OpenAADL"
tag=""
workdir="`pwd`" workdir="`pwd`"
scriptdir="`dirname $0`"; cd "${scriptdir}"; scriptdir="`pwd`" scriptdir="`dirname $0`"; cd "${scriptdir}"; scriptdir="`pwd`"
...@@ -33,11 +34,16 @@ while test $# -ne 0; do ...@@ -33,11 +34,16 @@ while test $# -ne 0; do
case ${r} in case ${r} in
--root_url=*) repository=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; --root_url=*) repository=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
--tag=*) tag=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*aadlib* ) *aadlib* )
cd ${scriptdir}/../resources/runtime || exit 2 cd ${scriptdir}/../resources/runtime || exit 2
rm -rf AADLib 2>/dev/null rm -rf AADLib 2>/dev/null
git clone ${repository}/AADLib.git aadlib \ git clone ${repository}/AADLib.git aadlib \
|| exit 2 || exit 2
if test ! -z "${tag}"; then
git checkout ${tag} -b ${tag}
fi;
;; ;;
*po*hi*ada* ) *po*hi*ada* )
...@@ -45,6 +51,9 @@ while test $# -ne 0; do ...@@ -45,6 +51,9 @@ while test $# -ne 0; do
rm -rf polyorb-hi-ada 2>/dev/null rm -rf polyorb-hi-ada 2>/dev/null
git clone ${repository}/polyorb-hi-ada.git \ git clone ${repository}/polyorb-hi-ada.git \
|| exit 2 || exit 2
if test ! -z "${tag}"; then
git checkout ${tag} -b ${tag}
fi;
;; ;;
*po*hi*c* ) *po*hi*c* )
...@@ -52,6 +61,9 @@ while test $# -ne 0; do ...@@ -52,6 +61,9 @@ while test $# -ne 0; do
rm -rf polyorb-hi-c 2>/dev/null rm -rf polyorb-hi-c 2>/dev/null
git clone ${repository}/polyorb-hi-c.git \ git clone ${repository}/polyorb-hi-c.git \
|| exit 2 || exit 2
if test ! -z "${tag}"; then
git checkout ${tag} -b ${tag}
fi;
;; ;;
*pok* ) *pok* )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment