forked from gkv311/sview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy_res.sh
30 lines (26 loc) · 1.12 KB
/
copy_res.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# auxiliary script to copy resources (translation files, shaders) to destination folder
TARGET_OUTPUT_DIR=$1
PROJECT_NAME=$2
mkdir -p "${TARGET_OUTPUT_DIR}lang/English/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/русский/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/français/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/Deutsch/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/ChineseS/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/Korean/"
mkdir -p "${TARGET_OUTPUT_DIR}lang/Czech/"
cp -f -r lang/english/* "${TARGET_OUTPUT_DIR}lang/English/"
cp -f -r lang/russian/* "${TARGET_OUTPUT_DIR}lang/русский/"
cp -f -r lang/french/* "${TARGET_OUTPUT_DIR}lang/français/"
cp -f -r lang/german/* "${TARGET_OUTPUT_DIR}lang/Deutsch/"
cp -f -r lang/chinese/* "${TARGET_OUTPUT_DIR}lang/ChineseS/"
cp -f -r lang/korean/* "${TARGET_OUTPUT_DIR}lang/Korean/"
cp -f -r lang/czech/* "${TARGET_OUTPUT_DIR}lang/Czech/"
if [ -d "shaders" ]; then
mkdir -p "${TARGET_OUTPUT_DIR}shaders/${PROJECT_NAME}"
cp -f -r shaders/* "${TARGET_OUTPUT_DIR}shaders/${PROJECT_NAME}/"
fi
if [ -d "web" ]; then
mkdir -p "${TARGET_OUTPUT_DIR}web"
cp -f -r web/* "${TARGET_OUTPUT_DIR}web/"
fi