dbtool: Fix it up so that it runs from the CURRENT working directory
This makes it far more useful, as before it insisted on scanning from the root directory and putting the generated db files in /.rockbox Change-Id: I0d0e3c6c6c7ee1fc5473185482fbfb9a2a2be29f
This commit is contained in:
parent
11e858b209
commit
e803daae0a
2 changed files with 2 additions and 2 deletions
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -4270,7 +4270,7 @@ fi
|
||||||
simcc "database-sdl"
|
simcc "database-sdl"
|
||||||
toolset='';
|
toolset='';
|
||||||
appsdir='$(ROOTDIR)/tools/database';
|
appsdir='$(ROOTDIR)/tools/database';
|
||||||
|
rbdir="./.rockbox"
|
||||||
case $uname in
|
case $uname in
|
||||||
CYGWIN*|MINGW*)
|
CYGWIN*|MINGW*)
|
||||||
output="database_${modelname}.exe"
|
output="database_${modelname}.exe"
|
||||||
|
|
|
@ -23,7 +23,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
/* / is actually ., will get translated in io.c
|
/* / is actually ., will get translated in io.c
|
||||||
* (with the help of sim_root_dir below */
|
* (with the help of sim_root_dir below */
|
||||||
const char *paths[] = { "/", NULL };
|
const char *paths[] = { "./", NULL };
|
||||||
tagcache_init();
|
tagcache_init();
|
||||||
do_tagcache_build(paths);
|
do_tagcache_build(paths);
|
||||||
tagcache_reverse_scan();
|
tagcache_reverse_scan();
|
||||||
|
|
Loading…
Reference in a new issue