home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 517a.lha / VFont_v2.0 / s / InstallVFont < prev    next >
AmigaDOS Script File  |  1991-06-09  |  5KB  |  140 lines

  1. .key from/k
  2.  
  3. Failat 31
  4. Echo "        *E[32mInstallation script for vFont version 2.0*E[0m*N*N"
  5. Ask "*E[0;3mAre you sure that you want to install the vFont package?*E[0m"
  6. if not warn
  7.     skip abort
  8. endif
  9.  
  10. setenv oldcwd `cd`
  11. if not exists InstallVFont
  12.     if not <from>
  13.         Ask "*E[0;3mAre you at the directory where you un-packed the archive?*E[0m"
  14.         if not warn
  15.             echo "    *E[33mEither move to that directory and use this script again*N    or start this script with the that directory as parameter.*E[0m*N"
  16.             skip abort
  17.         endif
  18.     else
  19.         echo "[Moving to the archive directory]"
  20.         cd <from>
  21.     endif
  22. endif
  23.  
  24. Echo "*N*N*E[33mThis script can either install the archive entirely by itself*Nor let you participate in that process. It will install files at the*NFONTS:, LIBS: and the SYS:Utilities directories when done automatically.*N*E[0m"
  25. Ask "*E[0;3mDo you want an automatic installation?*E[0m"
  26. if warn
  27.     echo "[Installing libraries at LIBS: " noline
  28.     if not exists libs:iffparse.library
  29.         echo "SafeSmallIFFParse," noline
  30.         copy libs/safesmalliffparse.library libs:iffparse.library
  31.     endif
  32.     if not exists libs:req.library
  33.         echo "Req," noline
  34.         copy libs/req.library libs:
  35.     endif
  36.     echo "XDF:s," noline
  37.     copy libs/xdf#? libs: quiet
  38.     echo "vFont]"
  39.     copy libs/vfont.library libs: quiet
  40.     echo "[Installing fonts at FONTS:]"
  41.     copy fonts/ FONTS: all quiet
  42.     if not exists Fonts:Times/18
  43.         copy "Extras 1.3:Fonts/Times.font" fonts:
  44.     makedir Fonts:Times
  45.     copy "Extras 1.3:Fonts/Times/18" fonts:Times
  46.     endif
  47.     echo "[Installing programs at SYS:Utilities]"
  48.     copy bin/#? SYS:Utilities quiet
  49. else
  50.     IF NOT EXISTS libs:iffparse.library
  51.         Echo "*E[33mApparently you do not have access to Workbench 2.0+.*NvFont needs the iffparse.library.*N*E[0m"
  52.         Ask "*E[0;3mDo you want to install a substitute for the iffparse.library?*E[0m"
  53.         If WARN
  54.             Echo
  55.             Echo "The substitute is a subset of the real iffparse.library."
  56.             Echo "This means that programs that requires the real library"
  57.             Echo "might or might not work. You have the choice of installing"
  58.             Echo "a safe or unsafe version of the library. The safe version"
  59.             Echo "will request an answer each time an application is opening"
  60.             Echo "the library. The unsafe will grant access to any application"
  61.             Echo "that wants it. (See documentation for further details.)"
  62.             Echo 
  63.             Ask "*E[0;3mDo you want to install the unsafe version?*E[0m"
  64.             If WARN
  65.                 Echo "[Installing the substitute]"
  66.                 Copy libs/SmallIFFParse.library libs:iffparse.library
  67.             Else
  68.                 Echo "[Installing the *"safe*" substitute]"
  69.                 Copy libs/SafeSmallIFFParse.library libs:iffparse.library
  70.             Endif
  71.         Else
  72.             Echo "*E[33m    You will not be able to run the font editor (COP) !*E[0m"
  73.         EndIF
  74.     EndIf
  75.     Ask "*E[0;3mDo you want to install the included vector fonts at FONTS:?*E[0m"
  76.     If WARN
  77.         Echo "[Installing fonts]"
  78.         Copy fonts/ fonts: all quiet     ; Copy the font classes to fonts:.
  79.     if not exists Fonts:Times/18
  80.         copy "Extras 1.3:Fonts/Times.font" fonts:
  81.     makedir Fonts:Times
  82.     copy "Extras 1.3:Fonts/Times/18" fonts:Times
  83.     endif
  84.     Else
  85.         Echo "*E[33m    You will not be able to use the fonts in this archive.*N*E[0m"
  86.     EndIF
  87.     Ask "*E[0;3mDo you want the libraries at LIBS:?*E[0m"
  88.     If WARN
  89.         if not exists libs:req.library
  90.             Echo "*E[33mThe font editor (COP) is using the req library to issue*Nrequester when some user input is needed, such as when selecting a font to edit.*N*E[0m"
  91.             Ask "*E[0;3mDo you want to install the req.library?*E[0m"
  92.             if warn
  93.                 echo "[Installing the req library]"
  94.                 copy libs/req.library libs:
  95.             endif
  96.         endif
  97.         Echo "*E[33m*N*NThe vfont library uses a set of libraries, called XDF libraries,*Nwhen it attempts to read or write different font file formats.*N*E[0m"
  98.         Ask "*E[0;3mDo you want to install the XDF libraries?*E[0m"
  99.         if warn
  100.             echo "[Installing xdf libraries]"
  101.             Copy libs/xdf#? libs: quiet
  102.         endif
  103.         Ask "*E[0;3mDo you want to install the main vfont library?*E[0m"
  104.         if warn
  105.             echo "[Installing vfont library]"
  106.             Copy libs/vfont.library libs:
  107.         endif
  108.     EndIf
  109.     Ask "*E[0;3mDo you want the programs installed at SYS:Utilities?*E[0m"
  110.     If WARN
  111.         echo "[Installing programs]"
  112.         Copy bin/#? sys:Utilities
  113.     Else
  114.         Ask "*E[0;3mDo you want the programs installed at C:?*E[0m"
  115.         If WARN
  116.             echo "[Installing programs]"
  117.             Copy bin/#? C: quiet
  118.         Else
  119.             Echo "*E[33m    You have to copy the programs manually, or *N    add the 'cd'/bin directory to your path.*N*E[0m"
  120.         EndIf
  121.     EndIf
  122. EndIf
  123.  
  124. Echo "[Checking the installation...]"
  125. Execute s/CheckInstall
  126.  
  127. Lab Done
  128. Echo "*N*E[33mPlease take a look at the ShareWare notice"
  129. Echo "and other files in the docs directory!*N*E[0m"
  130. Echo "Done!"
  131. Version >NIL: graphics.library 36
  132. If warn
  133.     cd $oldcwd
  134. endif
  135. Quit
  136.  
  137. Lab Abort
  138. Echo "*NNo action taken. Terminating...*E[0m"
  139. Quit
  140.