summaryrefslogtreecommitdiff
path: root/bin/write-menus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/write-menus.sh')
-rwxr-xr-xbin/write-menus.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/write-menus.sh b/bin/write-menus.sh
index 33ae144..500db52 100755
--- a/bin/write-menus.sh
+++ b/bin/write-menus.sh
@@ -1,4 +1,9 @@
#!/bin/bash
CONFIG_FILE=$1
DIRECTORY=$2
-find $DIRECTORY -name \*.html -exec python scripts/static-menu.py $CONFIG_FILE {} $DIRECTORY \;
+mkdir -p $DIRECTORY/players
+find $DIRECTORY -type d -not -name _\* |
+ while read HTMLDIR
+ do
+ python scripts/generate-static-menu.py $CONFIG_FILE $DIRECTORY $HTMLDIR > $HTMLDIR/.menu.html
+ done