Added a simple db build script to generate a simple system db which will be copied if none exists (by ecore_config)

SVN revision: 8705
This commit is contained in:
handyande 2004-01-28 18:54:15 +00:00 committed by handyande
parent 63629f7822
commit 9cd45b3d1a
3 changed files with 21 additions and 1 deletions

View File

@ -9,3 +9,4 @@ util.lo
edb.lo
libecore_config.la
ecore_config_ipc_ecore.la
system.db

View File

@ -5,19 +5,24 @@ INCLUDES = \
-I$(top_srcdir)/src/lib/ecore_ipc \
-I$(top_srcdir)/
DB = system.db
CLEANFILES = $(DB)
libecore_config_la_LDFLAGS = -version-info 1:0:0 \
-L$(top_builddir)/src/lib/ecore/.libs
ecore_config_ipc_ecore_la_LDFLAGS = -no-undefined -module \
-avoid-version -rdynamic -shared
if BUILD_ECORE_CONFIG
lib_LTLIBRARIES = libecore_config.la ecore_config_ipc_ecore.la
include_HEADERS = \
Ecore_Config.h
config_DATA = $(DB)
configdir = $(sysconfdir)
libecore_config_la_SOURCES = \
ecore_config.c \
ipc_main.c \
@ -43,6 +48,8 @@ $(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \
$(top_builddir)/src/lib/ecore_config/libecore_config.la \
-ledb
$(DB):
sh build_$(DB).sh
endif
@ -55,3 +62,6 @@ ipc.h \
util.c \
util.h \
edb.c
CLEANFILES = $(DB)

View File

@ -0,0 +1,9 @@
#!/bin/sh
DB=system.db
edb_ed $DB add /ewl/theme/name str "default"
if [ $BROWSER ]; then
edb_ed $DB add /apps/web/browser str "$BROWSER"
else
edb_ed $DB add /apps/web/browser str "`which MozillaFirebird || which phoenix || which mozilla || which opera || which konqueror || which epiphany`"
fi
edb_ed $DB add /apps/web/email str "`which MozillaThunderbird || which mozilla || which kmail || which sylpheed || which evolution`"