IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6091


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

add p2admin -recreate option

Location:
trunk/ippTools/src
Files:
2 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
  • trunk/ippTools/src/pxtools.h

    r6063 r6091  
    2424    P2_MODE_CREATE,                     // set the current state
    2525    P2_MODE_DELETE,                     // set the current state
     26    P2_MODE_RECREATE,           // set the current state
    2627} p2mode;
    2728
Note: See TracChangeset for help on using the changeset viewer.