mv ${SRCDIR}/rt-ide/tizen.rt.product/target/products/org.tizen.rt.ide/linux/gtk/x86/* ${INSTALL_DIR}
mv "${SRCDIR}/package/addingFiles/TizenStudioRT.sh" ${INSTALL_DIR}/rt-ide/
mv ${SRCDIR}/package/addingFiles/resources ${INSTALL_DIR}/rt-ide/
-
- mkdir ${INSTALL_DIR}/platforms
- mkdir ${INSTALL_DIR}/platforms/tizen-rt
- cp -rf ${ROOTDIR}/resources/templates ${INSTALL_DIR}/platforms/tizen-rt
-
+
+ if [ ! -d "${INSTALL_DIR}/platforms" ]; then
+ mkdir ${INSTALL_DIR}/platforms
+ echo 'created ${INSTALL_DIR}/platforms'
+ fi
+
+ if [ ! -d "${INSTALL_DIR}/platforms/tizen-rt" ]; then
+ mkdir ${INSTALL_DIR}/platforms/tizen-rt
+ echo 'created ${INSTALL_DIR}/platforms/tizen-rt'
+ fi
+
+ if [ -d "${ROOTDIR}/resources/templates" ]; then
+ cp -rf ${ROOTDIR}/resources/templates ${INSTALL_DIR}/platforms/tizen-rt/
+ echo 'copied ${ROOTDIR}/resources/templates to ${INSTALL_DIR}/platforms/tizen-rt/'
+ fi
+
cp -rf ${SRCDIR}/lib/plugins/* ${INSTALL_DIR}/rt-ide/plugins/
- mkdir ${INSTALL_DIR}/tools
+
+ if [ ! -d "${INSTALL_DIR}/tools" ]; then
+ mkdir ${INSTALL_DIR}/tools
+ echo 'created ${INSTALL_DIR}/tools'
+ fi
+
cp -rf ${SRCDIR}/tools/*.tar ${INSTALL_DIR}/tools/
+
cd ${INSTALL_DIR}/tools
find . -name '*.tar' -exec tar xf {} \;
cd -
mv ${SRCDIR}/rt-ide/tizen.rt.product/target/products/org.tizen.rt.ide/linux/gtk/x86_64/* ${INSTALL_DIR}
mv "${SRCDIR}/package/addingFiles/TizenStudioRT.sh" ${INSTALL_DIR}/rt-ide/
mv ${SRCDIR}/package/addingFiles/resources ${INSTALL_DIR}/rt-ide/
-
- mkdir ${INSTALL_DIR}/platforms
- mkdir ${INSTALL_DIR}/platforms/tizen-rt
- cp -rf ${ROOTDIR}/resources/templates ${INSTALL_DIR}/platforms/tizen-rt
-
- cp -rf ${SRCDIR}/lib/plugins/* ${INSTALL_DIR}/rt-ide/plugins/
- mkdir ${INSTALL_DIR}/tools
+
+ if [ ! -d "${INSTALL_DIR}/platforms" ]; then
+ mkdir ${INSTALL_DIR}/platforms
+ echo 'created ${INSTALL_DIR}/platforms'
+ fi
+
+ if [ ! -d "${INSTALL_DIR}/platforms/tizen-rt" ]; then
+ mkdir ${INSTALL_DIR}/platforms/tizen-rt
+ echo 'created ${INSTALL_DIR}/platforms/tizen-rt'
+ fi
+
+ if [ -d "${ROOTDIR}/resources/templates" ]; then
+ cp -rf ${ROOTDIR}/resources/templates ${INSTALL_DIR}/platforms/tizen-rt/
+ echo 'copied ${ROOTDIR}/resources/templates to ${INSTALL_DIR}/platforms/tizen-rt/'
+ fi
+
+ cp -rf ${SRCDIR}/lib/plugins/* ${INSTALL_DIR}/rt-ide/plugins/
+
+ if [ ! -d "${INSTALL_DIR}/tools" ]; then
+ mkdir ${INSTALL_DIR}/tools
+ echo 'created ${INSTALL_DIR}/tools'
+ fi
+
cp -rf ${SRCDIR}/tools/*.tar ${INSTALL_DIR}/tools/
+
cd ${INSTALL_DIR}/tools
find . -name '*.tar' -exec tar xf {} \;
cd -
-
# remove console executable
rm -rf ${INSTALL_DIR}/rt-ide/launcher
;;