#!/bin/bash

HERE=$(cd "$(dirname $0)" && pwd)
REPO_NAME=origin


echo
echo Checkout app apc-abstract from v0.2.8 tag...
if [ ! -d ${HERE}/apc-abstract/.git ]
then
    git clone  git@github.com:apeman-apps/apc-abstract.git ${HERE}/apc-abstract
fi
cd ${HERE}/apc-abstract
git fetch --all
git reset --hard HEAD
git clean -f
git checkout v0.2.8

echo
echo Checkout app apc-static from v0.0.9 tag...
if [ ! -d ${HERE}/apc-static/.git ]
then
    git clone  git@github.com:apeman-apps/apc-static.git ${HERE}/apc-static
fi
cd ${HERE}/apc-static
git fetch --all
git reset --hard HEAD
git clean -f
git checkout v0.0.9

echo
echo Checkout app apc-restful from v0.0.2 tag...
if [ ! -d ${HERE}/apc-restful/.git ]
then
    git clone  git@github.com:apeman-apps/apc-restful.git ${HERE}/apc-restful
fi
cd ${HERE}/apc-restful
git fetch --all
git reset --hard HEAD
git clean -f
git checkout v0.0.2


