home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / util / vcompat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-28  |  2.0 KB  |  70 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25.  
  26. #ifdef RCSID
  27. static char RcsId[] = "@(#)$Revision: 1.5 $";
  28. #endif
  29. /*
  30. $Header: /hdf/hdf/v3.2r2/util/RCS/vcompat.c,v 1.5 1992/07/15 21:48:48 sxu beta koziol $
  31.  
  32. $Log: vcompat.c,v $
  33.  * Revision 1.5  1992/07/15  21:48:48  sxu
  34.  * No change
  35.  *
  36.  * Revision 1.4  1992/05/26  21:00:08  koziol
  37.  * Folded Jason's Mac port and Linted code into the main version
  38.  *
  39.  * Revision 1.3  1992/04/24  15:38:25  koziol
  40.  * PC port
  41.  *
  42.  * Revision 1.2  1992/02/29  18:58:36  sxu
  43.  * add header
  44.  *
  45.  * Revision 1.1  1992/02/28  17:00:00  likkai
  46.  * Initial revision
  47.  *
  48. */
  49. #include <stdio.h>
  50. #include "vg.h"
  51.  
  52. main (ac,av) int ac; char**av; {
  53.  
  54. if (ac!=2) { 
  55.     fprintf(stderr,"%v: converts HDF vset v1.0 files to v2.0\n",av[0]);
  56.     fprintf(stderr,"Usage: %s hdf-file\n",av[0]);
  57.     exit(0);
  58.     }
  59.  
  60. if ( 0 == vcheckcompat(av[1]) ) {
  61.     vmakecompat (av[1]);
  62.     fprintf(stderr,"file [%s] is now compatible\n", av[1]);
  63.     }
  64. else
  65.     fprintf(stderr,"file [%s] already compatible with r2.0\n",av[1]);
  66.  
  67. } /* main */
  68.  
  69. /* ------------------------------------------------------------------ */
  70.