#!/bin/sh
cat > www/index.html <A Weird Imagination anagram games
Anagram Games
DOC
for app in $(find www -mindepth 1 -maxdepth 1 -type d -exec basename {} \;)
do
if [ "$app" != "wordlist" -a "$app" != "static" ]
then
qrencode -o "../root/www/static/qr/anagram-games-${app}.png" "https://apps.aweirdimagination.net/anagram-games/${app}/"
if [ -f "www/$app/description" ]
then
description=$(cat "www/$app/description")
else
description=$app
fi
if [ -f "www/$app/offline" ]
then
offline=" offline"
else
offline=""
fi
cat >> www/index.html <