-main(argc, argv)
- int argc;
- char **argv;
-{
- PLAN *plan;
- char **p, **paths;
- PLAN *find_formplan();
- time_t time();
-
- (void)time(&now); /* initialize the time-of-day */
-
- if (argc < 2)
- usage();
-
- paths = argv;
- ftsoptions = FTS_MULTIPLE|FTS_NOSTAT|FTS_PHYSICAL;
-
- /*
- * if arguments start with an option, it's new syntax; otherwise,
- * if has a "-option" anywhere it must be old syntax.
- */
- if (argv[1][0] != '-')
- for (p = argv + 1; *p; ++p)
- if (**p == '-') {
- deprecated = 1;
- oldsyntax(&argv);
- break;
- }
- if (!deprecated)
- newsyntax(argc, &argv);
-
- plan = find_formplan(argv); /* execution plan */
- find_execute(plan, paths);
-}