4 int main(int argc
, char** argv
) {
5 char** new_args
= calloc(argc
+2, sizeof(char*));
7 setenv("BUILDDIR", BUILDDIR
, 1);
8 setenv("PROGNAME", argv
[0], 1);
10 new_args
[1] = BUILDDIR
"/run-dev.rb";
11 for(i
= 1; i
< argc
; i
++) {
12 new_args
[i
+ 1] = argv
[i
];
14 new_args
[argc
+ 1] = NULL
;
15 execvp("ruby", new_args
);