libglacier/pkg/run-pkg.c

28 lines
273 B
C
Raw Normal View History

2024-10-02 17:30:43 -04:00
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
int
run_make_task(char task[])
{
char *build_args[] = {
"/bin/make",
task,
NULL
};
execvp(
"/bin/make",
build_args
);
if (errno != 0 ) {
return errno;
}
}
int
main()
{
run_make_task("help");
}