Updated MSpec source to 46e80081.
[rbx.git] / shotgun / dev-tramp.c
blob3cd70ba529e42d20a31f19a36a0f92cc33f1ad98
1 #include <unistd.h>
2 #include <stdlib.h>
4 int main(int argc, char** argv) {
5 char** new_args = calloc(argc+2, sizeof(char*));
6 size_t i;
7 setenv("BUILDDIR", BUILDDIR, 1);
8 setenv("PROGNAME", argv[0], 1);
9 new_args[0] = "ruby";
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);