2 /* Wrapper to make installation easier with cross-compiling.
4 * Copyright 2006 Rob Landley <rob@landley.net>
11 #define NEWTOY(name, opts, flags) {#name, 0, opts, flags},
12 #define OLDTOY(name, oldname, opts, flags) {#name, 0, opts, flags},
14 // Populate toy_list[].
16 struct toy_list toy_list[] = {
17 #include "toys/toylist.h"
20 #define TOY_LIST_LEN (sizeof(toy_list)/sizeof(struct toy_list))
22 int main(int argc, char *argv[])
24 static char *toy_paths[]={"usr/","bin/","sbin/",0};
27 // Output list of applets.
28 for (i=1; i<TOY_LIST_LEN; i++) {
29 int fl = toy_list[i].flags;
30 if (fl & TOYMASK_LOCATION) {
33 for (j=0; toy_paths[j]; j++)
34 if (fl & (1<<j)) len += printf("%s", toy_paths[j]);
36 len += printf("%s\n",toy_list[i].name);