/* Wrapper to make installation easier with cross-compiling. * * Copyright 2006 Rob Landley */ #include #include "generated/config.h" #include "lib/toyflags.h" #define NEWTOY(name, opts, flags) {#name, flags}, #define OLDTOY(name, oldname, flags) {#name, flags}, // Populate toy_list[]. struct {char *name; int flags;} toy_list[] = { #include "generated/newtoys.h" }; int main(int argc, char *argv[]) { static char *toy_paths[]={"usr/","bin/","sbin/",0}; int i, len = 0; // Output list of applets. for (i=1; i1) { int j; for (j=0; toy_paths[j]; j++) if (fl & (1<