summaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-02-17 16:54:07 +0100
committeremkael <emkael@tlen.pl>2015-02-17 16:54:07 +0100
commit637542f594ae0fb1648ac7b20cc86ee82895731b (patch)
tree9e13e3bf6d0c20f0dda6e82cc692dab58fb1f7b9 /import
parent6c203d33de45dc7f0926d59749dabcd94f888947 (diff)
* base DB import script
Diffstat (limited to 'import')
-rwxr-xr-ximport/00_base_import.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/import/00_base_import.sh b/import/00_base_import.sh
new file mode 100755
index 0000000..a5dc396
--- /dev/null
+++ b/import/00_base_import.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+pushd $(dirname $0) > /dev/null
+if [ ! -f ../fetcher/f1db.sql ]
+then
+ ../fetcher/fetch.sh
+fi
+< ../fetcher/f1db.sql mysql "$@"
+popd > /dev/null