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:
parent
b148141200
commit
92ff91b989
2
.gitignore
vendored
2
.gitignore
vendored
@ -20,3 +20,5 @@ tags
|
||||
gtk-doc.make
|
||||
m4
|
||||
*.bak
|
||||
create-world.sh
|
||||
drop-world.sh
|
||||
|
@ -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)
|
||||
|
@ -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
8
create-world.sh.in
Normal 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
|
||||
|
@ -1,3 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
sqlite3 iminiru.db < sql/drop-world.sql
|
3
drop-world.sh.in
Normal file
3
drop-world.sh.in
Normal file
@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
sqlite3 "@localstatedir@"/iminiru.db < sql/drop-world.sql
|
Loading…
Reference in New Issue
Block a user