Commit c242e23a authored by Marcus's avatar Marcus

add client_branch

parent ec317bd5
......@@ -7,17 +7,20 @@ USER="feudal"
ETC_CONFIG=/etc/feudal
ADAPTER_BRANCH=master
CLIENT_BRANCH=master
GOPATH=/tmp/go
INSTALLDIR=/tmp/feudalClientInstaller
# Argument Parsing
function usage(){
echo "-b|--branch branch of feudalAdapterLdf to use"
echo "-ab|--adapter-branch branch of feudalAdapterLdf to use"
echo "-cb|--client-branch branch of feudalClient to use"
}
while [ $# -gt 0 ]; do
case "$1" in
-h|--help) usage; exit 0; ;;
-b|--branch) ADAPTER_BRANCH=${2} shift ;;
-ab|--adapter-branch) ADAPTER_BRANCH=${2} shift ;;
-cb|--client-branch) CLIENT_BRANCH=${2} shift ;;
*) echo "usage" ;;
esac
shift
......@@ -52,15 +55,15 @@ case "$RV" in
esac
### Install feudalClient
test -e ${INSTALLDIR}/feudalClient/feudalClient && {
# echo -e "feudalClient seems to be installed already, skipping"
rm -rf ${INSTALLDIR}/feudalClient
}
test -e ${INSTALLDIR}/feudalClient/feudalClient || {
echo -e "\nbuilding feudalClient"
cd ${INSTALLDIR}
git clone https://git.scc.kit.edu/feudal/feudalClient.git > /dev/null 2>&1
}
test -e ${INSTALLDIR}/feudalClient/feudalClient && {
echo -e "\nbuilding feudalClient from ${CLIENT_BRANCH}"
cd ${INSTALLDIR}
cd feudalClient
git co ${CLIENT_BRANCH} > /dev/null 2>&1
go get
go build
echo -e "Installing feudalClient"
......@@ -73,7 +76,7 @@ test -e ${INSTALLDIR}/feudalClient/feudalClient || {
### Install feudalAdapterLDF
echo -e "\nInstalling feudalAdapterLDF"
echo -e "\nInstalling feudalAdapterLDF from ${ADAPTER_BRANCH}"
cd ${INSTALLDIR}
test -d feudalAdapterLDF || {
git clone https://git.scc.kit.edu/feudal/feudalAdapterLdf.git > /dev/null 2>&1
......
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