#!/bin/sh

rm -rf _tagging_dir
if [ `getconf LONG_BIT` = "64" ]
then
    #echo "I'm 64-bit"
    OSBITS="64"
else
    #echo "I'm 32-bit"
    OSBITS="32"
fi

## KTICS
mkdir -p _tagging_dir/$OSBITS/KT/_shared/csdk
mkdir -p _tagging_dir/$OSBITS/KT/_shared/ssdk
mkdir -p _tagging_dir/$OSBITS/KT/_shared/sdk
mkdir -p _tagging_dir/$OSBITS/KT/_static/csdk
mkdir -p _tagging_dir/$OSBITS/KT/_static/ssdk
mkdir -p _tagging_dir/$OSBITS/KT/_static/sdk
mkdir -p _tagging_dir/$OSBITS/KT/include

## LGU
mkdir -p _tagging_dir/$OSBITS/LGU/_shared/csdk
mkdir -p _tagging_dir/$OSBITS/LGU/_shared/ssdk
mkdir -p _tagging_dir/$OSBITS/LGU/_shared/sdk
mkdir -p _tagging_dir/$OSBITS/LGU/_static/csdk
mkdir -p _tagging_dir/$OSBITS/LGU/_static/ssdk
mkdir -p _tagging_dir/$OSBITS/LGU/_static/sdk
mkdir -p _tagging_dir/$OSBITS/LGU/include

echo Created taggin_dir

## KTICS
cp -f -P .libs_kt/libshcsdk.so*	        _tagging_dir/$OSBITS/KT/_shared/csdk/
cp -f -P .libs_kt/libshssdk.so*         _tagging_dir/$OSBITS/KT/_shared/ssdk/
cp -f -P .libs_kt/libshsdk.so*          _tagging_dir/$OSBITS/KT/_shared/sdk/

cp -f -l .libs_static_kt/libshcsdk.a	_tagging_dir/$OSBITS/KT/_static/csdk/
cp -f -l .libs_static_kt/libshssdk.a	_tagging_dir/$OSBITS/KT/_static/ssdk/
cp -f -l .libs_static_kt/libshsdk.a		_tagging_dir/$OSBITS/KT/_static/sdk/

cp -f -l SHCSDK.h                       _tagging_dir/$OSBITS/KT/include/SHCSDK.h
cp -f -l SHSSDK.h                       _tagging_dir/$OSBITS/KT/include/SHSSDK.h

echo Copyed KTICS

## LGU
cp -f -P .libs_lgu/libshcsdk.so*	    _tagging_dir/$OSBITS/LGU/_shared/csdk/
cp -f -P .libs_lgu/libshssdk.so*        _tagging_dir/$OSBITS/LGU/_shared/ssdk/
cp -f -P .libs_lgu/libshsdk.so*         _tagging_dir/$OSBITS/LGU/_shared/sdk/

cp -f -l .libs_static_lgu/libshcsdk.a	_tagging_dir/$OSBITS/LGU/_static/csdk/
cp -f -l .libs_static_lgu/libshssdk.a	_tagging_dir/$OSBITS/LGU/_static/ssdk/
cp -f -l .libs_static_lgu/libshsdk.a	_tagging_dir/$OSBITS/LGU/_static/sdk/

cp -f -l SHCSDK.h                       _tagging_dir/$OSBITS/LGU/include/SHCSDK.h
cp -f -l SHSSDK.h                       _tagging_dir/$OSBITS/LGU/include/SHSSDK.h

echo Copyed LG U+

