add Makefile for sqlite
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 22 May 2008 11:20:08 +0000 (13:20 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Thu, 22 May 2008 11:20:08 +0000 (13:20 +0200)
Makefile [new file with mode: 0755]
make-sqlite.sh [deleted file]

diff --git a/Makefile b/Makefile
new file mode 100755 (executable)
index 0000000..f009941
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+
+
+regulatory.sqlite: *.sql
+       @rm -f requlatory.sqlite
+       @for i in *.sql ; do \
+               if [ $$i = "00-database.sql" ] ; then continue ; fi ;\
+               sed 's/AUTO_INCREMENT/AUTOINCREMENT/; s/use regulatory;//' < $$i | sqlite3 regulatory.sqlite ;\
+       done
diff --git a/make-sqlite.sh b/make-sqlite.sh
deleted file mode 100755 (executable)
index 4e4aa0f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-rm -f requlatory.sqlite
-for i in *.sql ; do
-       sed 's/AUTO_INCREMENT/AUTOINCREMENT/' < $i | sqlite3 regulatory.sqlite
-done