Ignore:
Timestamp:
Nov 26, 2008, 2:52:53 AM (17 years ago)
Author:
bird
Message:
kDepIDB: Added a -qquiet switch for disabling harmless warnings about stale files that cannot be found.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/kDepIDB.c

    r2019 r2104  
    780780static void usage(const char *argv0)
    781781{
    782     printf("usage: %s -o <output> -t <target> [-f] [-s] <vc idb-file>\n"
     782    printf("usage: %s -o <output> -t <target> [-fqs] <vc idb-file>\n"
    783783           "   or: %s --help\n"
    784784           "   or: %s --version\n",
     
    800800    /* Argument parsing. */
    801801    int         fInput = 0;             /* set when we've found input argument. */
     802    int         fQuiet = 0;
    802803
    803804    argv0 = argv[0];
     
    818819            if (*psz == '-')
    819820            {
    820                 if (!strcmp(psz, "-help"))
     821                if (!strcmp(psz, "-quiet"))
     822                    psz = "q";
     823                else if (!strcmp(psz, "-help"))
    821824                    psz = "?";
    822825                else if (!strcmp(psz, "-version"))
    823                     psz = "v";
     826                    psz = "V";
    824827            }
    825828
     
    891894
    892895                /*
     896                 * Quiet.
     897                 */
     898                case 'q':
     899                {
     900                    fQuiet = 1;
     901                    break;
     902                }
     903
     904                /*
    893905                 * Generate stubs.
    894906                 */
     
    905917                    usage(argv[0]);
    906918                    return 0;
     919                case 'V':
    907920                case 'v':
    908921                    return kbuild_version(argv[0]);
     
    972985    if (!i)
    973986    {
    974         depOptimize(fFixCase);
     987        depOptimize(fFixCase, fQuiet);
    975988        fprintf(pOutput, "%s:", pszTarget);
    976989        depPrint(pOutput);
Note: See TracChangeset for help on using the changeset viewer.