| Index: ports/nacl-spawn/cli_main.c
|
| diff --git a/ports/nacl-spawn/cli_main.c b/ports/nacl-spawn/cli_main.c
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e9b25e3d68f76d7acde8fcfaffc78b977218c4b2
|
| --- /dev/null
|
| +++ b/ports/nacl-spawn/cli_main.c
|
| @@ -0,0 +1,18 @@
|
| +/*
|
| + * Copyright (c) 2014 The Native Client Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* Define a typical entry point for command line tools spawned by bash
|
| + * (e.g., ls, objdump, and objdump). */
|
| +
|
| +#include "ppapi_simple/ps_main.h"
|
| +#include "nacl_main.h"
|
| +
|
| +int cli_main(int argc, char* argv[]) {
|
| + nacl_spawn_setup_env();
|
| + return nacl_main(argc, argv);
|
| +}
|
| +
|
| +PPAPI_SIMPLE_REGISTER_MAIN(cli_main)
|
|
|