home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / INSTALL / FILES / RUNBUILD.SH < prev    next >
Text File  |  1996-09-04  |  1KB  |  55 lines

  1. #
  2. # NAME:
  3. #
  4. #       truetype_font_install installs all the TrueType fonts
  5. #
  6. # SYNOPSIS:    
  7. #
  8. #    truetype_font_install NeXT_root_directory major_version minor_version 
  9. #                Windows_root_directory
  10. #
  11. #
  12. # DESCRIPTION:
  13. #
  14. #    truetype_font_install is a Bourne shell script used to 
  15. #    convert all the .ttf font files in the window root directory 
  16. #    and places the resultant .font files in the next root directory
  17. #
  18. #  EXAMPLES:
  19. #
  20. #    >truetype_font_install $(NEXT_ROOT) 4 0 $(WINDIR)
  21. #
  22. NEXTFONTDIR=""
  23. BUILDAFMDIR=""
  24.  
  25. # Check argumens 
  26. case $# in
  27.     1 )
  28.         ;;
  29.     * )
  30.         echo "runbuild : usage";
  31.         echo "      runbuild.sh NeXT_root_directory";;
  32. esac
  33.  
  34. # Check Next root directory
  35. if test ! -d $1
  36. then
  37.     echo "runbuild : invalid NeXT root directory" $1
  38.     exit 1
  39. fi
  40.  
  41.  
  42. NEXTFONTDIR=$1"/NextLibrary/Fonts";
  43. BUILDAFMDIR=$1"/NextLibrary/Executables";
  44.  
  45. if test ! -d $NEXTFONTDIR
  46. then
  47.     echo "runbuild : invalid NeXt font directory" $NEXTFONTDIR
  48.     exit 1
  49. fi
  50.  
  51. echo "runbuild : running buildafmdir"
  52.  
  53. $BUILDAFMDIR/buildafmdir.exe  $NEXTFONTDIR
  54.  
  55.