mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 14:49:16 +02:00
gschema-compile: output to srcdir by default
If the target directory is not explicitly set then output to the source directory. Closes bug #616311 reported by Bastien Nocera.
This commit is contained in:
parent
f5990c1aef
commit
f82839b8fe
@ -515,10 +515,11 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
srcdir = argv[1];
|
srcdir = argv[1];
|
||||||
if (targetdir)
|
|
||||||
|
if (targetdir == NULL)
|
||||||
|
targetdir = srcdir;
|
||||||
|
|
||||||
target = g_build_filename (targetdir, "gschemas.compiled", NULL);
|
target = g_build_filename (targetdir, "gschemas.compiled", NULL);
|
||||||
else
|
|
||||||
target = "gschemas.compiled";
|
|
||||||
|
|
||||||
dir = g_dir_open (srcdir, 0, &error);
|
dir = g_dir_open (srcdir, 0, &error);
|
||||||
if (dir == NULL)
|
if (dir == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user