File = imports.File.File;
console = imports.console.console;
+Seed.include('Date.js');
-DateExtra = imports.DateExtra.DateExtra;
+//DateExtra = imports.DateExtra.DateExtra;
-var LOGFILE = "jhbuild-" + (new DateExtra()).format("Y-m-d-H") + '.log';
+var LOGFILE = "jhbuild-" + (new Date()).format("Y-m-d-H") + '.log';
// change src & deleteGirs when you add / remove girs..
GLib.SpawnFlags.DO_NOT_REAP_CHILD + GLib.SpawnFlags.SEARCH_PATH ,
null, null, ret);
- var ctx = GLib.main_loop_new (null, false);
+ var ctx = new GLib.MailLoop.c_new (null, false);
var started = false;
GLib.child_watch_add(GLib.PRIORITY_DEFAULT, ret.child_pid, function(pid, status) {
retval.done = true;
if (started) {
console.log("Ending LOOP");
- GLib.main_loop_quit(ctx);
+ ctx.quit();
}
});
if (!retval.done) {
started = true;
console.log("STARTING LOOP");
- GLib.main_loop_run(ctx, false); // wait fore exit?
+ ctx.run(); // wait fore exit?
}
readstr(out_ch, outfile, 'output');
readstr(err_ch, errfile, 'error');