summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-05-25 15:43:15 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-05-25 15:43:15 -0400
commite803daae0a1c42dbee0417d883a1944c65916cce (patch)
treebb010a798a9be5c39ba6c9c725ba1ca59874dbd6
parent11e858b20992828c58b18cbaa225e7bef317a535 (diff)
downloadrockbox-e803daae0a1c42dbee0417d883a1944c65916cce.tar.gz
rockbox-e803daae0a1c42dbee0417d883a1944c65916cce.zip
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
-rwxr-xr-xtools/configure2
-rw-r--r--tools/database/database.c2
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
4270 simcc "database-sdl" 4270 simcc "database-sdl"
4271 toolset=''; 4271 toolset='';
4272 appsdir='$(ROOTDIR)/tools/database'; 4272 appsdir='$(ROOTDIR)/tools/database';
4273 4273 rbdir="./.rockbox"
4274 case $uname in 4274 case $uname in
4275 CYGWIN*|MINGW*) 4275 CYGWIN*|MINGW*)
4276 output="database_${modelname}.exe" 4276 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)
23 23
24 /* / is actually ., will get translated in io.c 24 /* / is actually ., will get translated in io.c
25 * (with the help of sim_root_dir below */ 25 * (with the help of sim_root_dir below */
26 const char *paths[] = { "/", NULL }; 26 const char *paths[] = { "./", NULL };
27 tagcache_init(); 27 tagcache_init();
28 do_tagcache_build(paths); 28 do_tagcache_build(paths);
29 tagcache_reverse_scan(); 29 tagcache_reverse_scan();