3 ASSETS_SRC_PATH="../.."
4 ASSETS_SRC_SUBDIRS="conf docs graphics levels music sounds"
6 ASSETS_DST_PATH="app/src/main/assets"
8 if [ -d "$ASSETS_DST_PATH" ]; then
12 mkdir -p "$ASSETS_DST_PATH"
14 for i in $ASSETS_SRC_SUBDIRS; do
15 ASSETS_SRC_DIR="$ASSETS_SRC_PATH/$i"
16 ASSETS_DST_DIR="$ASSETS_DST_PATH/$i"
18 if [ -d "$ASSETS_DST_DIR" ]; then
19 echo "ERROR: Directory '$ASSETS_DST_DIR' already exists!"
23 cp -a "$ASSETS_SRC_DIR" "$ASSETS_DST_DIR"