home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1997 #5 / AmigaPlus_Extra-CD_5-97.iso / online-tools / mail / q-blue2.3 / install < prev    next >
Text File  |  1997-03-02  |  7KB  |  150 lines

  1. echo "*N            ****** Q-Blue 2.3 installation script ****** *N"
  2. echo "   Using Mike Austin's clones of RequestFile and RequestChoice.*N"
  3.  
  4. if not exists "How-to-order.info"
  5.   echo "*N !!!  THIS SCRIPT WILL WORK ONLY WHEN ITS CURRENT"
  6.   echo " !!!  DIRECTORY IS WHERE THE Q-BLUE DISTRIBUTION EXISTS."
  7.   echo " !!!  IT'S BEST TO JUST RUN IT USING THE WORKBENCH ICON."
  8.   Quit 20    ; may leave a CLI window if IconX'd from wrong directory under v37
  9. endif
  10.  
  11. resident RqFile c/RequestFile pure
  12. resident RqChoice c/RequestChoice pure
  13. resident c/IsADir pure
  14. resident c/XSkip pure   ; version of Skip that doesn't gag on 500 char lines
  15.  
  16. failat 25
  17. alias > nil: reqc RqChoice "Q-Blue 2.3 Installation" []
  18. if error
  19.   failat 15
  20.   alias reqc literal RqChoice "Q-Blue 2.3 Installation" []
  21. endif           ; that second version is for WShell
  22. failat 15
  23.  
  24. reqc "This script can install several fonts and other*Nfiles useful with Q-Blue.  You can select where*Neach will be installed, or skip any part.*NDo you want to go ahead with the installation?"
  25. if $result eq 0
  26.   echo "*N **** Installation cancelled"
  27.   XSkip cleanup
  28. endif
  29.  
  30. set filepath ""
  31. reqc "The BBS messages that Q-Blue displays commonly use the*NIBM character set instead of the Amiga's normal ISO*Nset.  Q-Blue can handle this by using an IBM compatible*Nfont.  Several fonts, both IBM and ISO style, can be*Ninstalled now.  Normally they would go in the standard*NFONTS: directory.  Do you want to specify a different*Ndirectory before selecting which fonts to install?"
  32. if $result eq 1
  33.   LAB PICKFONTDIR
  34.   RqFile "Select directory for fonts" "FONTS:" "" DIRS
  35.   if not warn
  36.     IsADir "$result"
  37.     if warn
  38.       reqc "You have selected a filename instead of a*Ndirectory name.  Please pick a directory." "Okay"
  39.       XSkip pickfontdir back
  40.     else
  41.       set filepath "$result"
  42.     endif
  43.   endif
  44. else
  45.   set filepath "FONTS:"
  46. endif
  47.  
  48. if "$filepath" eq ""
  49.   reqc "**** No valid directory selected*N**** fonts not installed" "Okay"
  50. else
  51.   echo "*N ===  Installing fonts in $filepath  ==="
  52.   reqc "newcleanibm.font is a sans-serif 8 by 8 pixel font*Nusing the IBM character set, which is a good choice*Nfor using Q-Blue on a basic non-interlaced NTSC or*NPAL screen.  Do you want to install this font?"
  53.   if $result eq 1
  54.     Copy fonts/newcleanibm#? ALL "$filepath"
  55.   endif
  56.   reqc "tallibm.font is an IBM font in 8 by 11, 8 by 12, and*N8 by 14 sizes, which is recommended when using Q-Blue*Nwith interlaced or productivity screens (640 pixels wide*Nand 400 or more tall).  Do you want to install it?"
  57.   if $result eq 1
  58.     Copy fonts/tallibm#? ALL "$filepath"
  59.   endif
  60.   reqc "wideibm.font is an IBM font in 10 by 9, 10 by 12,*Nand 10 by 14 sizes, which is recommended for those*Nwho will use Q-Blue on a screen 800 pixels wide.*NIt is not useful with older Amigas that cannot*Ndisplay such screens.  Do you want to install it?"
  61.   if $result eq 1
  62.     Copy fonts/wideibm#? ALL "$filepath"
  63.   endif
  64.   reqc "stretchibm.font is a 9 by 12 pixel IBM*Nfont, suitable for NTSC or PAL screens*Nwith plenty of horizontal overscan, 720*Npixels wide.  Do you want to install it?"
  65.   if $result eq 1
  66.     Copy fonts/stretchibm#? ALL "$filepath"
  67.   endif
  68.   reqc "talliso.font is similar to the tallibm font, with 8 by*N11, 8 by 12, and 8 by 14 sizes, but uses the Amiga's*NISO character set instead of IBM characters.  Like*Ntallibm, it is designed for interlaced screens, 640*Nby 400 or more pixels.  Do you want to install it?"
  69.   if $result eq 1
  70.     Copy fonts/talliso#? ALL "$filepath"
  71.   endif
  72.   reqc "wideiso.font is similar to the wideibm font, in*N10 by 12 and 10 by 14 sizes, but with the normal*NISO character set.  It is intended for screens*N800 pixels wide.  Do you want to install it?"
  73.   if $result eq 1
  74.     Copy fonts/wideiso#? ALL "$filepath"
  75.   endif
  76.   reqc "stretchiso.font is like the stretchibm font,*N9 by 12 pixels, but with the normal Amiga ISO*Ncharacter set.  It is suitable for NTSC or PAL*Nscreens with plenty of horizontal overscan,*N720 pixels wide.  Do you want to install it?"
  77.   if $result eq 1
  78.     Copy fonts/stretchiso#? ALL "$filepath"
  79.   endif
  80.   Wait 1
  81. endif
  82.  
  83. set filepath ""
  84. reqc "Do you want to install the sample taglines file?  Use*Nthe file requester to select a filename that is not in*Nuse -- this script will not overwrite an existing file."
  85. if $result eq 1
  86.   LAB PICKATAG
  87.   RqFile "Select Taglines directory" "S:" "Taglines"
  88.   if not warn
  89.     IsADir "$result"
  90.     if warn
  91.       if exists "$result"
  92.         reqc "You have selected an existing file.  Please*Nselect a filename that is not currently in use." "Okay"
  93.         XSkip pickatag back
  94.       endif
  95.       set filepath "$result"
  96.     else
  97.       assign foobargoober: ""
  98.       cd "$result"
  99.       if exists "Taglines"
  100.         reqc "You have selected a directory where the file*N*"Taglines*" already exists.  Please select a*Nfilename that is not currently in use." "Okay"
  101.         cd foobargoober:
  102.         assign foobargoober:
  103.         XSkip pickatag back
  104.       endif
  105.       cd foobargoober:
  106.       assign foobargoober:
  107.       set filepath "Taglines"
  108.       set filepath "$result$filepath"
  109.     endif
  110.   else
  111.     reqc "**** No valid filename selected*N**** Taglines not installed" "Okay"
  112.   endif
  113. endif
  114.  
  115. if not "$filepath" eq ""
  116.   echo > env:tagline-tail "; Taglines added or stolen with Q-Blue:*N; ====================================="
  117.   reqc "The file *"Liberal-taglines*" contains some additional*Ntaglines that express ideas that are politically left*Nof center.  Do you want to include these lines in the*Ntagline file being installed?"
  118.   failat 25
  119.   if $result eq 1
  120.     Join Taglines Liberal-taglines env:tagline-tail as "$filepath"
  121.     if error
  122.       Copy Taglines "$filepath"
  123.       reqc "**** JOIN command failed!*N**** Liberal-taglines not included" "Okay"
  124.     endif
  125.   else
  126.     Join Taglines env:tagline-tail as "$filepath"
  127.     if error
  128.       Copy Taglines "$filepath"
  129.     endif
  130.   endif
  131.   if not error
  132.     echo "Taglines saved as $filepath"
  133.   endif
  134.   Delete env:tagline-tail quiet
  135. endif
  136.  
  137. reqc "That completes this script.  With a registered copy*Nof Q-Blue, this script would also install Zip and*NUnZip utilities and several documentation files.  To*Ninstall the Q-Blue program itself, just drag its*Nicon to whatever drawer you want to keep it in.*NThe same goes for Q-Blue.doc, the user manual." "Okay"
  138.  
  139. LAB CLEANUP
  140. resident RqFile remove
  141. resident RqChoice remove
  142. resident IsADir remove
  143. resident XSkip remove
  144. unset filepath
  145. failat 25
  146. unalias reqc
  147. if error                ; for WShell:
  148.   alias -kill reqc
  149. endif
  150.