Made create-world.sh and drop-world.sh a template.

create-world.sh and drop-world.sh are now autogenerated by the configure
script, as they need to hold some paths set by that script.

Signed-off by Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely 2012-03-27 19:39:47 +00:00
parent b148141200
commit 92ff91b989
6 changed files with 14 additions and 12 deletions

2
.gitignore vendored
View File

@ -20,3 +20,5 @@ tags
gtk-doc.make
m4
*.bak
create-world.sh
drop-world.sh

View File

@ -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)

View File

@ -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

8
create-world.sh.in Normal file
View File

@ -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

View File

@ -1,3 +0,0 @@
#! /bin/bash
sqlite3 iminiru.db < sql/drop-world.sql

3
drop-world.sh.in Normal file
View File

@ -0,0 +1,3 @@
#! /bin/bash
sqlite3 "@localstatedir@"/iminiru.db < sql/drop-world.sql