diff --git a/.gitignore b/.gitignore index 9803516..0f4ffe2 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ tags gtk-doc.make m4 *.bak +create-world.sh +drop-world.sh diff --git a/configure.ac b/configure.ac index f605e95..4714c00 100644 --- a/configure.ac +++ b/configure.ac @@ -43,4 +43,4 @@ PKG_CHECK_MODULES([GLIB], glib-2.0) PKG_CHECK_MODULES([GTHREAD], gthread-2.0) PKG_CHECK_MODULES([SQLITE3], sqlite3) -AC_OUTPUT(Makefile wmud/Makefile docs/reference/wmud/Makefile) +AC_OUTPUT(Makefile wmud/Makefile docs/reference/wmud/Makefile create-world.sh drop-world.sh) diff --git a/create-world.sh b/create-world.sh deleted file mode 100755 index d8b2f00..0000000 --- a/create-world.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -sqlite3 iminiru.db < sql/planes.sql -sqlite3 iminiru.db < sql/planets.sql -sqlite3 iminiru.db < sql/rooms.sql - -sqlite3 iminiru.db < iminiru/data.sql - diff --git a/create-world.sh.in b/create-world.sh.in new file mode 100644 index 0000000..e556750 --- /dev/null +++ b/create-world.sh.in @@ -0,0 +1,8 @@ +#! /bin/bash + +sqlite3 "@localstatedir@"/iminiru.db < sql/planes.sql +sqlite3 "@localstatedir@"/iminiru.db < sql/planets.sql +sqlite3 "@localstatedir@"/iminiru.db < sql/rooms.sql + +sqlite3 "@localstatedir@"/iminiru.db < iminiru/data.sql + diff --git a/drop-world.sh b/drop-world.sh deleted file mode 100755 index a42486a..0000000 --- a/drop-world.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -sqlite3 iminiru.db < sql/drop-world.sql diff --git a/drop-world.sh.in b/drop-world.sh.in new file mode 100644 index 0000000..2b340ec --- /dev/null +++ b/drop-world.sh.in @@ -0,0 +1,3 @@ +#! /bin/bash + +sqlite3 "@localstatedir@"/iminiru.db < sql/drop-world.sql