build-finish: Add --no-exports

tingping/wmclass
Alexander Larsson 2015-12-21 15:37:26 +01:00
parent d99c4f6568
commit 3adb84e368
2 changed files with 13 additions and 0 deletions

View File

@ -34,9 +34,11 @@
#include "xdg-app-run.h"
static char *opt_command;
static gboolean opt_no_exports;
static GOptionEntry options[] = {
{ "command", 0, 0, G_OPTION_ARG_STRING, &opt_command, "Command to set", "COMMAND" },
{ "no-exports", 0, 0, G_OPTION_ARG_NONE, &opt_no_exports, "Don't process exports" },
{ NULL }
};
@ -180,6 +182,9 @@ collect_exports (GFile *base, const char *app_id, GCancellable *cancellable, GEr
if (!gs_file_ensure_directory (export, TRUE, cancellable, error))
return FALSE;
if (opt_no_exports)
return TRUE;
for (i = 0; paths[i]; i++)
{
g_autoptr(GFile) src = NULL;

View File

@ -209,6 +209,14 @@
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--no-exports</option></term>
<listitem><para>
Don't look for exports in the build.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option></term>
<term><option>--verbose</option></term>