projects
/
cs-p2p-next.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5c04f7e7c2da1e26c8a2028a781cc92c17ebf2cd
[cs-p2p-next.git]
/
ppf
/
db
/
sqlite_initdb.bash
1
#!/bin/bash
2
3
SQL_INIT_SCRIPT=../sql/p2p-log-sqlite.sql
4
5
if test $# -ne 1; then
6
echo "Usage: $0 db_file_name"
7
exit 1
8
fi
9
10
DB_FILE=$1
11
12
cat $SQL_INIT_SCRIPT | sqlite3 $DB_FILE
13
14
exit 0