mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-03 20:05:36 +00:00
20 lines
517 B
Bash
Executable File
20 lines
517 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# run from project root directory
|
|
|
|
games=$(grep "," res/GAMES.CONF | grep -v "^#" | cut -d"," -f2 | cut -d"=" -f1 | sort)
|
|
cp res/GAMEHELP/STANDARD "$1"
|
|
for c in {A..Z}; do
|
|
echo "group$c"
|
|
for game in $(echo "$games" | grep "^$c"); do
|
|
echo "!byte ${#game}"
|
|
echo "!text \"$game\""
|
|
if [ -f "res/GAMEHELP/$game" ]; then
|
|
echo "!be24 $(wc -c <"$1")"
|
|
cat res/GAMEHELP/"$game" >> "$1"
|
|
else
|
|
echo "!be24 0"
|
|
fi
|
|
done
|
|
done > "$2"
|