Add mysql2sqlite submodule and script for making a sqlite database out of the mysql dumps. This will be used to create html archives of the forum.
This commit is contained in:
14
forum/create_sqlite_database
Executable file
14
forum/create_sqlite_database
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
SQLITE_OUT=forum.sqlite
|
||||
AWK=awk
|
||||
|
||||
if command -v mawk &> /dev/null; then
|
||||
AWK=mawk
|
||||
fi
|
||||
|
||||
$AWK -f ../mysql2sqlite/mysql2sqlite structure.sql | sqlite3 -echo $SQLITE_OUT
|
||||
$AWK -f ../mysql2sqlite/mysql2sqlite misc_data.sql | sqlite3 -echo $SQLITE_OUT
|
||||
$AWK -f ../mysql2sqlite/mysql2sqlite categories.sql | sqlite3 -echo $SQLITE_OUT
|
||||
$AWK -f ../mysql2sqlite/mysql2sqlite boards.sql | sqlite3 -echo $SQLITE_OUT
|
||||
$AWK -f ../mysql2sqlite/mysql2sqlite threads.sql | sqlite3 -echo $SQLITE_OUT
|
||||
#cat threads.sql | sqlite3 $SQLITE_OUT
|
Reference in New Issue
Block a user