Commit f82839b8 authored by Allison Karlitskaya's avatar Allison Karlitskaya

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.
parent f5990c1a
......@@ -515,10 +515,11 @@ main (int argc, char **argv)
}
srcdir = argv[1];
if (targetdir)
target = g_build_filename (targetdir, "gschemas.compiled", NULL);
else
target = "gschemas.compiled";
if (targetdir == NULL)
targetdir = srcdir;
target = g_build_filename (targetdir, "gschemas.compiled", NULL);
dir = g_dir_open (srcdir, 0, &error);
if (dir == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment