summaryrefslogtreecommitdiff
path: root/tools/export-game.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/export-game.sh')
-rw-r--r--tools/export-game.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/export-game.sh b/tools/export-game.sh
new file mode 100644
index 0000000..19cd4e7
--- /dev/null
+++ b/tools/export-game.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+if [ -n "$1" ]
+then
+ sqlite3 db "select export from game_export_view where game_id=$1"
+else
+ echo "usage: bash tools/export-game.sh GAME > game.json"
+fi
+