home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / UUCODE / UUPC / TEST / UPC12ES4.ZIP / UTIL / install.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-24  |  3.3 KB  |  87 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    i n s t a l l . c                                               */
  3. /*                                                                    */
  4. /*    Install/upgrade program for UUPC/extended                       */
  5. /*                                                                    */
  6. /*    Copyright (c) 1992 by Andrew H. Derbyshire                      */
  7. /*--------------------------------------------------------------------*/
  8.  
  9. /*--------------------------------------------------------------------*/
  10. /*                          RCS Information                           */
  11. /*--------------------------------------------------------------------*/
  12.  
  13. /*
  14.  *    $Id: install.c 1.3 1993/04/11 00:33:54 ahd Exp $
  15.  *
  16.  *    Revision history:
  17.  *    $Log: install.c $
  18.  * Revision 1.3  1993/04/11  00:33:54  ahd
  19.  * Global edits for year, TEXT, etc.
  20.  *
  21.  * Revision 1.3  1993/04/11  00:33:54  ahd
  22.  * Global edits for year, TEXT, etc.
  23.  *
  24.  * Revision 1.2  1993/04/04  04:57:01  ahd
  25.  * *** empty log message ***
  26.  *
  27.  * Revision 1.1  1992/11/15  04:29:22  ahd
  28.  * Initial revision
  29.  *
  30.  */
  31.  
  32. static char rcsid[] =
  33.       "$Id: install.c 1.3 1993/04/11 00:33:54 ahd Exp $";
  34.  
  35. /*--------------------------------------------------------------------*/
  36. /*                      Standard C include files                      */
  37. /*--------------------------------------------------------------------*/
  38.  
  39. #include <stdio.h>
  40. #include <stdlib.h>
  41.  
  42. /*--------------------------------------------------------------------*/
  43. /*                     UUPC/extended include files                    */
  44. /*--------------------------------------------------------------------*/
  45.  
  46. #include "lib.h"
  47. #include "timestmp.h"
  48.  
  49. /*--------------------------------------------------------------------*/
  50. /*                          Local prototypes                          */
  51. /*--------------------------------------------------------------------*/
  52.  
  53. /*--------------------------------------------------------------------*/
  54. /*    m a i n                                                         */
  55. /*                                                                    */
  56. /*    Main program                                                    */
  57. /*--------------------------------------------------------------------*/
  58.  
  59. void main( int argc, char **argv )
  60. {
  61.  
  62. /*--------------------------------------------------------------------*/
  63. /*                       Announce our parentage                       */
  64. /*--------------------------------------------------------------------*/
  65.  
  66.    banner( argv );
  67.  
  68. /*--------------------------------------------------------------------*/
  69. /*         Determine if UUPC/extended may have been installed         */
  70. /*--------------------------------------------------------------------*/
  71.  
  72.    if (getenv(UUPCSYSRC) == NULL )
  73.       installed = FALSE;
  74.  
  75.    if (installed)
  76.       update();
  77.    else
  78.       install();
  79.  
  80. } /* main */
  81.  
  82. /*--------------------------------------------------------------------*/
  83. /*       i n s t a l l                                                */
  84. /*                                                                    */
  85. /*       Perform a basic install of UUPC/extended                     */
  86. /*--------------------------------------------------------------------*/
  87.