home *** CD-ROM | disk | FTP | other *** search
- ; TSMorph - Amiga Morphing program
- ; Copyright (C) © 1993/94 Topicsave Limited
-
- ; This program is free software; you can redistribute it and/or modify
- ; it under the terms of the GNU General Public License as published by
- ; the Free Software Foundation; either version 2 of the License, or
- ; any later version.
-
- ; This program is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
-
- ; You should have received a copy of the GNU General Public License
- ; along with this program; if not, write to the Free Software
- ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- ; mpaddock@cix.compulink.co.uk
-
- ; This is the script to install TSMorph
- ; $VER: TSMorph-Install 3.0 (5.3.94)
-
- (complete 0)
-
- (set InstallDir
- (askdir
- (prompt "Where do you want to install TSMorph 3.0")
- (help @askdir-help)
- (default "Work:")
- )
- )
-
- (if (> (/ (getversion) 65536) 38)
- (set Kick30 1)
- (set Kick30 0)
- )
-
- (Set DestDir
- (tackon InstallDir "TSMorph")
- )
-
- (Set RexxDir
- (tackon DestDir "Rexx")
- )
-
- (Set CursorDir
- (tackon DestDir "Cursor")
- )
-
- (Set BrushDir
- (tackon DestDir "Brush")
- )
-
- (Set TutDir
- (tackon DestDir "Tutorial")
- )
-
- (Set HTMLDir
- (tackon DestDir "HTML")
- )
-
- (set @default-dest
- DestDir
- )
-
- (makedir
- DestDir
- (infos)
- )
-
- (Set Use040
- (=
- (database "cpu")
- 68040
- )
- )
-
- (Set Has881
- (+
- (AND
- (NOT (run "cpu check 68881"))
- (>=
- (database "cpu")
- 68020
- )
- )
- Use040
- )
- )
-
- (set Use881
- (askchoice
- (prompt "Install which version?")
- (help "There are three versions of the TSMorph-render program. "
- "One should run on any processor. "
- "One requires both a 68020 or 68030 CPU with a 68881 or 68882 FPU. "
- "The other requires a 68040.")
- (choices
- "No FPU version"
- "68020/030/68881/2"
- "68040"
- )
- (default Has881)
- )
- )
-
- (complete 10)
-
- (if Use881
- (if (> Use881 1)
- (
- (copyfiles
- (prompt "Copying TSMorph program and data files")
- (help @copyfiles-help)
- (source "")
- (dest DestDir)
- (choices "TSMorph" "TSMorph-render.040" "TSMorph.doc" "TSMorph.guide" "TSMorph-prefs")
- (infos)
- (confirm)
- )
- (delete (tackon DestDir "TSMorph-render"))
- (rename (tackon DestDir "TSMorph-render.040")
- (tackon DestDir "TSMorph-render")
- )
- (delete (tackon DestDir "TSMorph-render.info"))
- (rename (tackon DestDir "TSMorph-render.040.info")
- (tackon DestDir "TSMorph-render.info")
- )
- )
- )
- (
- (
- (copyfiles
- (prompt "Copying TSMorph program and data files")
- (help @copyfiles-help)
- (source "")
- (dest DestDir)
- (choices "TSMorph" "TSMorph-render.881" "TSMorph.doc" "TSMorph.guide" "TSMorph-prefs")
- (infos)
- (confirm)
- )
- (delete (tackon DestDir "TSMorph-render"))
- (rename (tackon DestDir "TSMorph-render.881")
- (tackon DestDir "TSMorph-render")
- )
- (delete (tackon DestDir "TSMorph-render.info"))
- (rename (tackon DestDir "TSMorph-render.881.info")
- (tackon DestDir "TSMorph-render.info")
- )
- )
- )
- (copyfiles
- (prompt "Copying TSMorph program and data files")
- (help @copyfiles-help)
- (source "")
- (dest DestDir)
- (choices "TSMorph" "TSMorph-render" "TSMorph.doc" "TSMorph.guide" "TSMorph-prefs")
- (infos)
- (confirm)
- )
- )
-
- (if Kick30
- (tooltype
- (dest (tackon destdir "TSMorph.guide"))
- (setdefaulttool "MultiView")
- )
- )
-
- (complete 20)
-
- (makedir
- RexxDir
- (infos)
- )
-
- (copyfiles
- (prompt "Copying example Rexx scripts")
- (help @copyfiles-help)
- (source "Rexx")
- (dest RexxDir)
- (all)
- (infos)
- (confirm)
- )
-
- (complete 30)
-
- (makedir "ENVARC:TSMorph")
-
- (copyfiles
- (prompt "Copying Icons to ENVARC:")
- (help @copyfiles-help)
- (source "")
- (dest "ENVARC:TSmorph")
- (choices "ENV/TSMorph/def_points.info"
- "ENV/TSMorph/def_bw16.info"
- "ENV/TSMorph/def_bw256.info"
- "ENV/TSMorph/def_dctv3.info"
- "ENV/TSMorph/def_dctv4.info"
- "ENV/TSMorph/def_ham6.info"
- "ENV/TSMorph/def_ham8.info"
- "ENV/TSMorph/def_iff.info"
- "ENV/TSMorph/def_ilbm.info"
- "ENV/TSMorph/def_jpg.info"
- "ENV/TSMorph/def_ppm.info"
- "ENV/TSMorph/def_prefs.info")
- (confirm)
- )
-
- (complete 40)
-
- (makedir "ENV:TSMorph")
-
- (copyfiles
- (prompt "Copying Icons to ENV:")
- (help @copyfiles-help)
- (source "")
- (dest "ENV:TSmorph")
- (choices "ENV/TSMorph/def_points.info"
- "ENV/TSMorph/def_bw16.info"
- "ENV/TSMorph/def_bw256.info"
- "ENV/TSMorph/def_dctv3.info"
- "ENV/TSMorph/def_dctv4.info"
- "ENV/TSMorph/def_ham6.info"
- "ENV/TSMorph/def_ham8.info"
- "ENV/TSMorph/def_iff.info"
- "ENV/TSMorph/def_ilbm.info"
- "ENV/TSMorph/def_jpg.info"
- "ENV/TSMorph/def_ppm.info"
- "ENV/TSMorph/def_prefs.info")
- (confirm)
- )
-
- (complete 50)
-
- (if
- (askbool
- (prompt "Copy GUI files?")
- (help "Select 'Yes' to copy the GUI files. "
- "These files may then be changed to allow you to configure the user interface. "
- "Select 'No' if you do not wish to change the interface.")
- (default 0)
- )
- (
- (makedir CursorDir)
- (copyfiles
- (prompt "Copying Pointer files")
- (help @copyfiles-help)
- (source "Cursor")
- (dest CursorDir)
- (all)
- (infos)
- (confirm)
- )
- (complete 55)
- (makedir BrushDir)
- (copyfiles
- (prompt "Copying Gadget files")
- (help @copyfiles-help)
- (source "Brush")
- (dest BrushDir)
- (all)
- (infos)
- (confirm)
- )
- )
- )
-
- (complete 60)
-
- (if
- (askbool
- (prompt "Copy Tutorial files?")
- (help "A short tutorial and some image files are included. "
- "Select 'Yes' to copy the Tutorial files. "
- "Select 'No' if you do not wish to install the Tutorial.")
- (default 1)
- )
- (
- (makedir TutDir)
- (copyfiles
- (prompt "Copying Tutorial files")
- (help @copyfiles-help)
- (source "Tutorial")
- (dest TutDir)
- (all)
- (infos)
- (confirm)
- )
- )
- )
-
- (complete 70)
-
- (if
- (askbool
- (prompt "Copy .html files?")
- (help "Documentation is also included in .html format. "
- "You will need Mosaic to read these files. "
- "If you do not have Mosaic (or do not know what it is) then "
- "you will not want to copy the files. "
- "Select 'Yes' to copy the .html files. "
- "Select 'No' if you do not wish to install the .html files.")
- (default 0)
- )
- (
- (makedir HTMLDir)
- (copyfiles
- (prompt "Copying .html files")
- (help @copyfiles-help)
- (source "HTML")
- (dest HTMLDir)
- (all)
- )
- (complete 75)
- (copyfiles
- (prompt "Copying View_HTML icon")
- (help @copyfiles-help)
- (source "")
- (dest DestDir)
- (choices "View_HTML.info")
- )
- (set Mosaic
- (askfile
- (prompt "Where is Mosaic?")
- (help "The exact location and name of Mosaic is required "
- "to enable a script to be set up to view the documentation.")
- (default "work:Mosaic")
- )
- )
- (textfile
- (dest (tackon DestDir "View_HTML"))
- (append "cd HTML\n")
- (append Mosaic " file://localhost/TSMorph:html/TSMorph.html")
- )
- )
- )
-
- (complete 80)
-
- (startup "TSMorph"
- (prompt "Adding assign TSMorph: to " DestDir " in s:user-startup")
- (help @startup-help)
- (command "Assign TSMorph: " DestDir)
- )
-
- (complete 90)
-
- (makeassign "TSMorph" DestDir)
-
- (complete 100)
-