4 FETCH_CMD="git fetch -p"
5 CHECKOUT_CMD="git checkout -f "
9 echo "***********************************************************************"
11 echo "* IoTivity Checkout Start. *"
13 echo "***********************************************************************"
18 echo ---------------------------------------------------------------------
19 echo "Fail to Build, Check Last Step. [$_STEP]"
20 echo ---------------------------------------------------------------------
33 if [ ! -d resource/csdk ];then
34 echo "Please check the pwd."
43 COMMIT_ID=$(awk '/^commit_id:/{print $2}' "$1")
44 echo COMMIT ID is $COMMIT_ID
46 if [ 0 == ${#COMMIT_ID} ];then
56 echo $CHECKOUT_CMD $COMMIT_ID
57 $CHECKOUT_CMD $COMMIT_ID