projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jhbuild.js
[gnome.introspection-doc-generator]
/
jhbuild.js
diff --git
a/jhbuild.js
b/jhbuild.js
index
d07306f
..
b088626
100755
(executable)
--- a/
jhbuild.js
+++ b/
jhbuild.js
@@
-11,8
+11,9
@@
Gio = imports.gi.Gio;
File = imports.File.File;
console = imports.console.console;
File = imports.File.File;
console = imports.console.console;
+Seed.include('Date.js');
-
xdate = imports.Date.Date
;
+
//DateExtra = imports.DateExtra.DateExtra
;
@@
-24,7
+25,7
@@
var UPDATE_SOURCES = false;
-var LOGFILE = "jhbuild-" + (new
imports.Date.
Date()).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..
// change src & deleteGirs when you add / remove girs..
@@
-232,7
+233,7
@@
function spawnlog (cwd, s, outfile, errfile) {
GLib.SpawnFlags.DO_NOT_REAP_CHILD + GLib.SpawnFlags.SEARCH_PATH ,
null, null, ret);
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) {
var started = false;
GLib.child_watch_add(GLib.PRIORITY_DEFAULT, ret.child_pid, function(pid, status) {
@@
-241,7
+242,7
@@
function spawnlog (cwd, s, outfile, errfile) {
retval.done = true;
if (started) {
console.log("Ending LOOP");
retval.done = true;
if (started) {
console.log("Ending LOOP");
-
GLib.main_loop_quit(ctx
);
+
ctx.quit(
);
}
});
}
});
@@
-316,7
+317,7
@@
function spawnlog (cwd, s, outfile, errfile) {
if (!retval.done) {
started = true;
console.log("STARTING LOOP");
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');
}
readstr(out_ch, outfile, 'output');
readstr(err_ch, errfile, 'error');