mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
16 lines
514 B
Plaintext
Executable File
16 lines
514 B
Plaintext
Executable File
#!/usr/bin/env narwhal
|
|
|
|
var FILE = require("file");
|
|
|
|
var cappuccinoPackage = FILE.path(module.path).dirname().dirname();
|
|
var mainPath = cappuccinoPackage.join("lib", FILE.basename(module.path), "main.j");
|
|
var frameworksPath = cappuccinoPackage.join("Frameworks");
|
|
|
|
// TODO: is specifying the Frameworks necessary?
|
|
system.args.splice(1, 0, "-I"+frameworksPath, String(mainPath));
|
|
|
|
// HACK: remove use of SELF_HOME from capp gen
|
|
system.env["SELF_HOME"] = cappuccinoPackage;
|
|
|
|
require("objective-j").run(system.args);
|