mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-29 02:44:34 +00:00
19 lines
491 B
Bash
19 lines
491 B
Bash
cd $(dirname "$0")
|
|
source ./../configuration.sh
|
|
|
|
for template in ${_WEBCLIENT_TEMPLATE_FILES[@]}; do
|
|
TARGET_NAME=$(echo "${template}" | sed -e "s/\_template//g")
|
|
SOURCE_PATH="./../${template}"
|
|
TARGET_PATH="./../${TARGET_NAME}"
|
|
|
|
cat "${SOURCE_PATH}" > "${TARGET_PATH}"
|
|
for var in ${!WEBCLIENT_@}; do
|
|
sed -i -r "s/\{\{${var}\}\}/${!var}/g" ${TARGET_PATH}
|
|
done
|
|
|
|
done
|
|
|
|
if [ ! -d "./../src/assets/wow_icon" ]; then
|
|
unzip -o ./../src/assets/wow_icon.zip -d ./../src/assets/
|
|
fi
|