home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / FTREE0.3.LHA / ftree / RCS / install-ftree,v next >
Encoding:
Text File  |  1994-04-27  |  4.4 KB  |  190 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks; strict;
  5. comment    @# @;
  6.  
  7.  
  8. 1.1
  9. date    94.04.27.12.06.27;    author peteric;    state Exp;
  10. branches;
  11. next    ;
  12.  
  13.  
  14. desc
  15. @Install routine for C= installer.
  16. @
  17.  
  18.  
  19. 1.1
  20. log
  21. @Initial revision
  22. @
  23. text
  24. @; Hey Emacs, this script might as well be -*- lisp -*-
  25. ;
  26. ; Ftree installation script for Installer
  27. ;
  28. ; Copyright © 1994 P. Ivcimey-Cook
  29. ;
  30. ; $Id$
  31. ;
  32. ; This script has been tested with Installer 1.24:
  33. ;
  34. ;     Installer and Installer project icon
  35. ;     (c) Copyright 1991-93 Commodore-Amiga, Inc.  All Rights Reserved.
  36. ;     Reproduced and distributed under license from Commodore.
  37. ;
  38. ;     INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
  39. ;     NO WARRANTIES ARE MADE.  ALL USE IS AT YOUR OWN RISK.  NO LIABILITY
  40. ;     OR RESPONSIBILITY IS ASSUMED.
  41. ;
  42. ; Use following Icon tooltypes / Command line options:
  43. ; APPNAME=FTree
  44. ; MINUSER=AVERAGE
  45. ;
  46. (set version "1.0")
  47. (set app-vname (cat @@app-name " version " version))
  48.  
  49. (transcript "Installing the Family Tree Charter Version " version)
  50.  
  51. (welcome "    Welcome to " app-vname " installation.\n"
  52.         "Please note that " @@app-name " can ONLY be run from a shell (CLI) at present."
  53. )
  54.  
  55. (set instdir (pathonly @@icon))
  56.  
  57. (if
  58.     (askbool
  59.         (prompt @@app-name " is currently installed\nin directory " @@instdir "\n"
  60.                     "Do you wish to copy the files elsewhere?")
  61.         (help    "The installer can set up the system to use files\n"
  62.                 "in their current locations, or copy them elsewhere.\n"
  63.                 "Select Yes if you wish for the files to be copied\n"
  64.                 "somewhere else.")
  65.         (default 0)
  66.         (choices "Yes - Copy" "No - Leave")
  67.     )
  68.     (
  69.         (set newinstdir
  70.             (askdir
  71.                 (prompt "Please select a new directory for the " app-vname " files.")
  72.                 (help @@askdir-help)
  73.                 (default (cat "TOOLS:FTree-" version))
  74.             )
  75.         )
  76.         
  77.         (set n 1)
  78.         (set m 10)                    ; number of files in this list
  79.         (while (set thisfile (select n
  80.                     "bin/ftree"
  81.                     "guide/ftree.guide"
  82.                     "guide/ftree.guide"
  83.                     "examples/example"
  84.                     "examples/people"
  85.                     "examples/cooks"
  86.                     "examples/mccallums"
  87.                     "libs/ixemul.library"
  88.                     "libs/arp.library"
  89.                     "ps/ftinit.ps"
  90.                 ))
  91.         (
  92.             
  93.             (copyfiles 
  94.                 (prompt "Copying file " thisfile " to new directory")
  95.                 (help @@copyfiles-help)
  96.                 (icons)
  97.                 (source thisfile)
  98.                 (dest (tackon newinstdir thisfile))
  99.             )
  100.             
  101.             (transcript "Copying file \"" thisfile "\" to new directory.")
  102.             (complete (+ 10 (* (/ n m) 10)) )
  103.         )
  104.         (set instdir newinstdir)
  105.         (complete 20)
  106.     )
  107.     (
  108.         (transcript "Installed directory \"" instdir "\" being left as-is.")
  109.         (complete 20)
  110.     )
  111. )
  112.  
  113. (set psfontdir (getassign "psfonts:" "va"))
  114. (set psfonts-assigned (<> psfontdir ""))
  115.  
  116. (if (NOT (psfonts-assigned))
  117.     (
  118.         (transcript "\"psfonts:\" volume not defined.")
  119.         (set psfontdir (askdir
  120.                 (prompt "Please enter the directory in which PostScript fonts can be found.\n"
  121.                         "A directory \"afm\" will be created in this for the Adobe Font Metric files required by " @@app-name)
  122.                 (help @@askdir-help)
  123.                 (default "SYS:PSFonts")
  124.                 (newpath)
  125.             )
  126.         (makedir psfontdir)
  127.         (makedir (tackon psfontdir "afm"))
  128.         (makeassign "PSFONTS" psfontdir)
  129.         (startup @@app-name
  130.                 (prompt @@app-name " needs to modify the user-startup file so that the directory \"PSFONTS\" is available.")
  131.                 (help @@startup-help)
  132.                 (command    "assign PSFONTS: " psfontdir "\n"
  133.                             "path " (tackon instdir "bin") " add\n")
  134.         )
  135.     )
  136. )
  137.  
  138. (complete 30)
  139.  
  140. (transcript "Installing ixemul.library")
  141.  
  142. (copylib
  143.     (help @@copylib-help)
  144.     (prompt "Installing System Library (Ixemul.library)")
  145.     (confirm)
  146.     (source "Libs/ixemul.library")
  147.     (dest
  148.         (askdir
  149.             (prompt "Please select a place for \"ixemul.library\".")
  150.             (help @@askdir-help)
  151.             (default "LIBS:")
  152.         )
  153.     )
  154. )
  155.  
  156. (complete 40)
  157.  
  158. (set vernum (getversion "exec.library" (resident)))
  159. (set execver (/ vernum 65536))
  160.  
  161. (if (< execver 39)
  162.     (
  163.         (transcript "Installing arp.library")
  164.  
  165.         (message "You are using an Amiga with an operating system earlier than Kickstart 2.\n"
  166.                 "The standard PostScript interpreter \"Post\" requires Kickstart 2 to work correctly.\n"
  167.                 "However, an external PostScript LaserPrinter can still be used to print " app-vname "'s output.\n"
  168.                 "Therefore the OS1.2/1.3 support library \"arp.library\" will be copied.")
  169.         
  170.         (copylib
  171.             (help @@copylib-help)
  172.             (prompt "Installing System Library (Arp.library)")
  173.             (confirm)
  174.             (source "Libs/arp.library")
  175.             (dest
  176.                 (askdir
  177.                     (prompt "Please select a place for \"arp.library\".")
  178.                     (help @@askdir-help)
  179.                     (default "LIBS:")
  180.                 )
  181.             )
  182.         )
  183.     )
  184. )
  185.  
  186. (complete 50)
  187.  
  188.  
  189. @
  190.