; FindItGui installation script
; $VER: 1.10 (23.09.96) by Michael Griggs


(set #askoptions-help
            "You may select one, all or none of the choices specified."
)


(set #installexe-help
     "This is where the main executable part of FindItGui goes,\nalong with it's icon.  The default is sys:WBStartup, but\nyou can select it to be wherever you want."
)



(set #installdoc-help
      "This is the documentation for FindItGui.  It is suggested\nthat you install it in the directory HELP: but this is\nnot compulsory."
)

(set exedest
   (askdir
      (prompt "Where do you wish to install FindItGui ?")
      (help #installexe-help)
      (default "SYS:WBStartup")
   )
)


(set installdoc
    (askoptions

        (prompt "Would you like to install the documentation?")
        (help #askoptions-help)

        (choices

            "AmigaGuide"

        )
    )
)

(set docdest
    (askdir
        (prompt "Where do you wish to install the Documentation?")
        (help @askdir-help)
        (default "HELP:")
    )
)

(copylib
   (prompt "Copying FindItGui...")
   (source "FindItGui")
   (confirm)
   (infos)
   (help @copylib-help)
   (dest exedest)
)

(copylib
   (prompt "Copying filetypes...")
   (source "filetypes")
   (confirm)
   (infos)
   (help @copylib-help)
   (dest "s:")
)


(copyfiles
    (prompt "Copying Documentation...")
    (source "FindItGui.Guide")
    (infos)
    (help @copyfiles-help)
    (dest docdest)
)

(message "BGUI.Library is about to be installed\n"
         "Version 39 (included with FindItGui)\n"
         "is the only stable version.  If you\n"
         "have a later version in LIBS: then\n"
         "please install *this* version.\n"
         "This will avoid any BGUI related\n"
         "bugs."
)

(copyfiles
    (prompt "Copying bgui.library to LIBS:")
    (source "libs/bgui.library")
    (dest "LIBS:")
    (confirm)
    (help @copyfiles-help)
)
      
(copylib
    (prompt "Copy whatis.library to LIBS:")
    (source "libs/whatis.library")
    (dest "LIBS:")
    (confirm)
    (help @copylib-help)
)

(set @default-dest exedest)
(message "FindItGui is now ready to go!")
(message "Please read the documentation for more information")


