IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 20, 2006, 3:56:52 PM (21 years ago)
Author:
jhoblitt
Message:

add p2admin -recreate option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxadmin.c

    r6068 r6091  
    88    p2adminConfig (&config, argc, argv);
    99
    10     if (config.mode == P2_MODE_CREATE) {
    11         p2createTables (&config);
    12     }
    13 
    14     if (config.mode == P2_MODE_DELETE) {
    15         p2deleteTables (&config);
     10    switch (config.mode) {
     11        case P2_MODE_CREATE:
     12            p2createTables (&config);
     13            break;
     14        case P2_MODE_DELETE:
     15            p2deleteTables (&config);
     16            break;
     17        case P2_MODE_RECREATE:
     18            p2deleteTables (&config);
     19            p2createTables (&config);
     20            break;
     21        default:
     22            psAbort (argv[0], "invalid option (this should not happen)");
    1623    }
    1724
Note: See TracChangeset for help on using the changeset viewer.