echo " --copylib : When this option is used, all libs and resources will be "
echo " copied into template directory, and all templates will refer"
echo " those copied libs."
echo " --copylib : When this option is used, all libs and resources will be "
echo " copied into template directory, and all templates will refer"
echo " those copied libs."
- if [ ! -d "$INSTALL_DIR" ]; then usage "No install-dir found; $INSTALL_DIR"; fi
- if [ -e "$DESTDIR" ]; then usage "$DESTDIR already exists"; fi
+ if [ ! -n "$APP_NAME" ]; then usage "No app-name is given."; fi
+ if [ ! -d "$INSTALL_DIR" ]; then usage "No install-dir is found; $INSTALL_DIR"; fi
+ if [ -e "$DESTDIR" ]; then usage "$DESTDIR already exists."; fi
echo "Copying template files into $DESTDIR..."
mkdir -p $DESTDIR || usage "ERROR: Failed to create directory: $DESTDIR"
find $tplpath/ -maxdepth 1 -type f | xargs -i cp -a {} $DESTDIR/ || usage "ERROR: Failed to copy templates" ;
echo "Copying template files into $DESTDIR..."
mkdir -p $DESTDIR || usage "ERROR: Failed to create directory: $DESTDIR"
find $tplpath/ -maxdepth 1 -type f | xargs -i cp -a {} $DESTDIR/ || usage "ERROR: Failed to copy templates" ;
if [[ -n "$type" && -d "$tplpath/$type" ]]; then # Copy type-specific files
cp -a $tplpath/$type/* $DESTDIR/ || usage "ERROR: Failed to copy templates"
fi
if [[ -n "$type" && -d "$tplpath/$type" ]]; then # Copy type-specific files
cp -a $tplpath/$type/* $DESTDIR/ || usage "ERROR: Failed to copy templates"
fi
echo "Copying libs into $DESTDIR..."
cp -a ${libpath} ${DESTDIR}/ || usage "ERROR: Failed to copy libs"
DATA_FRAMEWORK_ROOT="data-framework-root=\"tizen-web-ui-fw\""
echo "Copying libs into $DESTDIR..."
cp -a ${libpath} ${DESTDIR}/ || usage "ERROR: Failed to copy libs"
DATA_FRAMEWORK_ROOT="data-framework-root=\"tizen-web-ui-fw\""