diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2023-05-25 15:43:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-05-25 15:43:15 -0400 |
commit | e803daae0a1c42dbee0417d883a1944c65916cce (patch) | |
tree | bb010a798a9be5c39ba6c9c725ba1ca59874dbd6 | |
parent | 11e858b20992828c58b18cbaa225e7bef317a535 (diff) | |
download | rockbox-e803daae0a.tar.gz rockbox-e803daae0a.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-x | tools/configure | 2 | ||||
-rw-r--r-- | 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(); |