added optional button to restart game (door, panel and touch variants)
[rocksndiamonds.git] / build-projects / android / build-scripts / create_asset_tocs.sh
1 #!/bin/bash
2
3 ASSETS_PATH="$1"
4
5 TOC_BASENAME=".toc"
6 TOC_FILENAME="$ASSETS_PATH/$TOC_BASENAME"
7
8 if [ "$ASSETS_PATH" = "" ]; then
9     echo "Usage: $0 <assets directory>"
10
11     exit 5
12 fi
13
14 if [ ! -d "$ASSETS_PATH" ]; then
15     echo "ERROR: cannot find directory '$ASSETS_PATH'!"
16
17     exit 10
18 fi
19
20 ls -1Ap "$ASSETS_PATH" | grep -v "^$TOC_BASENAME$" > "$TOC_FILENAME"
21
22 for i in "$ASSETS_PATH"/*; do
23     if [ -d "$i" ]; then
24         $0 "$i"
25     fi
26 done
27
28 exit 0