From e803daae0a1c42dbee0417d883a1944c65916cce Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 25 May 2023 15:43:15 -0400 Subject: [PATCH] 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 --- tools/configure | 2 +- tools/database/database.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/configure b/tools/configure index 1f758a967d..64b238bb6d 100755 --- a/tools/configure +++ b/tools/configure @@ -4270,7 +4270,7 @@ fi simcc "database-sdl" toolset=''; appsdir='$(ROOTDIR)/tools/database'; - + rbdir="./.rockbox" case $uname in CYGWIN*|MINGW*) output="database_${modelname}.exe" diff --git a/tools/database/database.c b/tools/database/database.c index 30f1c39626..713d379c41 100644 --- a/tools/database/database.c +++ b/tools/database/database.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) /* / is actually ., will get translated in io.c * (with the help of sim_root_dir below */ - const char *paths[] = { "/", NULL }; + const char *paths[] = { "./", NULL }; tagcache_init(); do_tagcache_build(paths); tagcache_reverse_scan();