home *** CD-ROM | disk | FTP | other *** search
- ; $VER: XiPaint (19.3.96)
- ; Script to install Xipaint 4.0
-
- (complete 0)
- ;=============================================================================
- ; English strings
-
- (if (= @language "english")
- (
- (set default_lang 2)
-
-
-
- (set #unpack
- (cat "Working on unpacking the help files ... "
- ))
-
- (set #unpack2
- (cat "Working on unpacking the XiPaint Libraries ... "
- ))
-
- (set #multipic
- (cat "Copying multipic.library to libs: ... "
- ))
-
-
- (set #nohelp
- (cat "No help available at this moment."
- ))
-
- (set #askfpu
- (cat "Has your Amiga a FPU? (For faster Raytracing)"
- ))
-
-
- (set #bad-kick
- (cat "You must be using Kickstart 2.0 or higher to install XiPaint 4.0"
- ))
-
- (set #introduction
- (cat "\n\nThis program lets you install XiPaint 4.0 on a hard drive."
- ))
-
- (set #ask-function
- (cat "\n\nSelect \"XiPaint 4.0\" to do a complete installation of "
- "XiPaint 4.0, or select \"Update Help-Files\" to modify which languages "
- "are available on a hard drive with XiPaint 4.0 already installed."
- ))
-
- (set #ask-function-1
- (cat "Yes I have"
- ))
-
- (set #ask-function-2
- (cat "No, Sorry"
- ))
-
- (set #fpu-help
- (cat "\nYou must choose which operation you would like to "
- "perform.\n\n"
- "Yes installs a faster version of the raytracer-module, but "
- "this version will not work on Amiga without a FPU. \n"
- "An Amiga with 68040 normally has a FPU, a Draco 68040 has not\n"
- ))
-
- (set #confirm-target
- (cat "\nXiPaint 4.0 will now be installed on your hard drive. "
- "Do you want XiPaint 4.0 installed in the \"%s\" partition?"
- ))
-
- (set #confirm-target-help
- (cat "Choose Yes to install the new XiPaint-files to the "
- "displayed directory."
- ))
-
-
- (set #confirm-target-lang
- (cat "\n\nThe available XiPaint 4.0 help-files on your hard drive will now be "
- "updated. Your XiPaint 4.0 files appear "
- "to be located in the \"%s\" "
- "partition.\n\n"
- "Is this correct?"
- ))
-
- (set #confirm-target-lang-help
- (cat "\nThe installer has determined that your current copy of "
- "Workbench is in the partition named \"%s\". Proceeding with the "
- "installation will cause the XiPaint help files to be copied there. "
- ))
-
- (set #which-disk-lang
- (cat "Where is XiPaint installed (to install the help files)? "
- ))
-
-
- (set #reboot-lang
- (cat "\nThe update of XiPaint 4.0 help files is now complete.\n\n"
- ))
-
- (set #which-disk
- (cat "Where should the XiPaint40 drawer be located?"
- ))
-
- (set #which-disk-help
- (cat "\nThis section lets you choose on which hard drive partition the "
- "XiPaint 4.0 files will be installed. "
- @askdir-help
- ))
-
-
- (set #checking-target
- (cat "\n\nChecking \"%s\" for obsolete files..."
- ))
-
- (set #delete-old-1
- (cat "Delete Automatically"
- ))
-
- (set #delete-old-2
- (cat "Ask Before Deleting"
- ))
-
- (set #deleting-obsolete
- (cat "\n\nDeleting obsolete files..."
- ))
-
- (set #confirm-delete
- (cat "\n\nShould the file \"%s\" be deleted?"
- ))
-
- (set #confirm-delete-help
- (cat "\nThe file \"%s\" is no longer "
- "useful under XiPaint 4.0. You can delete the file by selecting "
- "the \"Yes\" gadget, or preserve the file by selecting the \"No\" "
- "gadget."
- ))
-
-
- (set #confirm-delete-1
- (cat "Yes"
- ))
-
- (set #confirm-delete-2
- (cat "No"
- ))
-
- (set #ask-xipaint
- (cat "\n\nPlease insert the \"XiPaint\" disk in any floppy drive."
- ))
-
- (set #ask-extras
- (cat "\n\nPlease insert the \"XiExtras\" disk in any floppy drive."
- ))
-
- (set #ask-libs
- (cat "\n\nPlease insert the \"XiLibs\" disk in any floppy drive."
- ))
-
-
- (set #which-driver
- (cat "Which Graphicadapter should be installed?"
- ))
-
- (set #which-driver-help
- (cat "\nXiPaint can control many different graphicadapters. "
- "These drivers are libraries that let XiPaint adapt to a given "
- "graphicadapter. "
- "Check the boxes of the drivers you wish "
- "to have available on your system.\n\n"
- @askoptions-help
- ))
-
-
-
-
- (set #xiprefs-start
- (cat "\nThe installation of XiPaint 4.0 is now complete.\n\n "
- "XiPrefs will be startet to choose your graphic-adapter. "
- "Select the \"Proceed\" to start XiPrefs.\n\n"
- ))
- (set #xiprefs-start-help
- (cat "XiPaint doesn't know, which display you want to "
- "use. So please set the undo-memory and the display-type. "
- "You can change this settings whenever you want."
- ))
-
- ))
-
-
-
-
- ;=============================================================================
- ; German strings
-
- (if (= @language "deutsch")
- (
- (set default_lang 1)
-
-
- (set #unpack
- (cat "Entpacke die Hilfe-Dateien ... "
- ))
-
- (set #unpack2
- (cat "Entpacke die Xi-Libraries ... "
- ))
-
- (set #multipic
- (cat "Kopiere die multipic.library nach libs: ... "
- ))
-
- (set #vlablib
- (cat "Kopiere die vlab.library nach libs: ... "
- ))
-
- (set #nohelp
- (cat "Es ist derzeit keine Hilfe vorhanden (sniff)"
- ))
-
- (set #bad-kick
- (cat "Sie müssen Kickstart 2.0 oder höher zum Installieren von XiPaint 4.0 benutzen."
- ))
-
- (set #introduction
- (cat "\n\nHiermit können Sie XiPaint 4.0 auf einer "
- "Festplatte installieren. "
- ))
-
- (set #askfpu
- (cat "Hat Ihr Amiga eine FPU?\n (Für schnelleres Raytracing)"
- ))
-
- (set #ask-function-1
- (cat "Ja"
- ))
-
- (set #ask-function-2
- (cat "Nein"
- ))
-
- (set #fpu-help
- (cat "\nSie müssen auswählen, was installiert werden soll.\n\n"
- "Hat Ihr Amiga eine FPU (auch die meisten 68040er Amiga haben eine!) "
- "So wird eine schnellere Version des Raytracers installiert. \n "
- "Wenn nicht (so wie der Draco 68040), so wird eine IEEE-Version des Raytracers installiert\n"
- ))
-
- (set #confirm-target
- (cat "\n\nDieses Programm installiert XiPaint 4.0 auf Ihrer Festplatte. "
- "Wollen Sie die XiPaint40-Schublade auf der Partition \"%s\" installiert "
- "bekommen?"
- ))
-
- (set #confirm-target-help
- (cat "Wenn Sie im angegebenen Verzeichnis XiPaint-Files updaten möchten, "
- "so bejahen sie diesen Requester. "
- ))
-
-
- (set #confirm-target-lang
- (cat "\n\nDie unter XiPaint 4.0 verfügbaren Sprachen werden jetzt auf Ihrer "
- "Festplatte aktualisiert. Ihre XiPaint 4.0 Datein sind "
- "offenbar auf der Partition \"%s\" installiert.\n\n"
- "Ist das korrekt?"
- ))
-
- (set #confirm-target-lang-help
- (cat "\nDer Installer hat herausgefunden, daß die aktuellen "
- "XiPaint-Dateien offenbar in der Partition namens \"%s\" liegen. "
- "Wenn Sie die Installation einfach weiterlaufen lassen, werden die "
- "Sprachendateien dorthin kopiert."
- ))
-
- (set #which-disk-lang
- (cat "Wo ist XiPaint installiert (um die Hilfedateien zu ergänzen)? "
- ))
-
-
- (set #reboot-lang
- (cat "\nDie Aktualisierung der XiPaint 4.0 ist nun abgeschlossen.\n\n"
- ))
-
- (set #which-disk
- (cat "Wo soll die XiPaint40 Schublade installiert werden?"
- ))
-
- (set #which-disk-help
- (cat "\nHier können Sie wählen, auf welcher Festplattenpartition "
- "die Dateien von XiPaint 4.0 installiert werden sollen. "
- @askdir-help
- ))
-
-
- (set #checking-target
- (cat "\n\nÜberprüfen von \"%s\" auf überholte Dateien ..."
- ))
-
-
- (set #delete-old-1
- (cat "Automatisch löschen"
- ))
-
- (set #delete-old-2
- (cat "Löschen bestätigen"
- ))
-
- (set #deleting-obsolete
- (cat "\n\nLöschen überholter Dateien"
- ))
-
- (set #confirm-delete
- (cat "\n\nKann die Datei \"%s\" gelöscht werden?"
- ))
-
- (set #confirm-delete-help
- (cat "\nDie Datei "
- "\"%s\" ist unter XiPaint 4.0 überholt. Sie können die Datei "
- "durch Anklicken von \"Ja\" löschen oder durch Anklicken von \"Nein\" "
- "erhalten."
- ))
-
-
-
- (set #confirm-delete-1
- (cat "Ja"
- ))
-
- (set #confirm-delete-2
- (cat "Nein"
- ))
-
-
-
-
- (set #xiprefs-start
- (cat "Die Installation der XiPaint 4.0 ist nun abgeschlossen.\n\n"
- "Um die richtigen Treiber für Ihre Grafikkarte einstellen zu können "
- "wird nun XiPrefs gestartet. Wählen Sie die gewünschte Grafikkarte und "
- "Displaymodus aus.\n"
- ))
- (set #xiprefs-start-help
- (cat "XiPaint benötigt noch die Display-Einstellungen Ihrer Grafikkarte. "
- "Daher wird nun XiPrefs gestartet. Stellen Sie die gewünschte Auflösung "
- "und den gewünschten Undo-Speicher ein. Sie können jederzeit Änderungen "
- "mit XiPrefs vornehmen.\n"
- ))
-
- ))
-
-
-
-
-
- ;=============================================================================
- ; Check whether this system is operating with at least Kickstart 2.04 (V37).
- ; Otherwise refuse any further action! For lature usage this will remember
- ; the Kickstart and the Workbench Versions in the variables kickVersion and
- ; wbVersion.
-
- (set kickVersion (shiftright (getversion) 16))
- (if (< kickVersion 37)
- (
- (message #bad-kick)
- (exit (quiet))
- )
- )
-
- ;
-
- ;=============================================================================
- ; do a bit of set up...
-
- (set sourcePath (expandpath (pathonly @icon)))
-
-
- (set sourcePath (tackon sourcePath "XiPaint")) ; XiPaint - Things will be in the XiPaint Drawer
- (set old_xipaint (@default-dest))
- ;=============================================================================
- ; what do you want to do?
-
- (user 2)
-
- (message #introduction)
-
- (
-
- ;******************************************************************
- ;******************* FULL INSTALL *********************************
- ;******************************************************************
-
- ;=============================================================================
- ; say hi!
-
- (user 0)
- (welcome)
- (set old_level @user-level)
-
- ;=============================================================================
- ; get target directory where update is to be installed
- (user 2)
- (if (= (strlen old_xipaint) 0)
- (
- (user 2)
- (set target (askdir (prompt #which-disk)
- (help #which-disk-help)
- (default "")
- (disk)
- )
- )
- (user old_level)
- )
- (
- (if (askbool (prompt (#confirm-target old_xipaint))
- (help (#confirm-target-help old_xipaint))
- (default 1)
- )
- (
- (set target old_xipaint)
- )
- (
- (set target (askdir (prompt #which-disk)
- (help #which-disk-help)
- (default old_xipaint)
- (disk)
- )
- )
- ))
- ))
-
- (set @default-dest target)
- (user old_level)
- ;=============================================================================
- ; make some new drawers
-
- (set target (tackon target "XiPaint40"))
- (set @default-dest target)
- (makedir target (infos))
-
- ;=============================================================================
- ; looking for multipic.library (Very important)
- (copylib (prompt #multipic) (source (set sourcePath "libs/multipic.library")) (dest "libs:") (confirm)
- (help #nohelp))
- (rename "libs:multipic.library" "libs:multipic.library")
-
-
- ;=============================================================================
- ; look for the cpu
-
- (set mycpu (database "cpu"))
-
- (if (= mycpu "68000")
- (
- ((set sourcePath "68000"))
- )
- )
-
- (if (= mycpu "68010")
- (
- ((set sourcePath "68000"))
- )
- )
-
- (if (= mycpu "68040")
- (
- ((set sourcePath "68040"))
- )
- )
-
- (if (= mycpu "68020")
- (
- ((set sourcePath "68020+"))
- )
- )
-
- (if (= mycpu "68030")
- (
- ((set sourcePath "68020+"))
- )
- )
-
- ; Will not work - sorry!
- (if (= mycpu "68060")
- (
- ((set sourcePath "68020+"))
- )
- )
-
- (complete 2)
-
- (makedir (tackon target "languages"))
- (makedir (tackon target "makros"))
- (makedir (tackon target "pictures"))
- (makedir (tackon target "brush"))
- (makedir (tackon target "modules"))
- (makedir (tackon target "libs"))
-
- (complete 5)
- (copyfiles (source sourcePath) (dest target )(all) )
- ; (copyfiles (source sourcePath) (dest target )(pattern "#?")(files) )
- (copyfiles (source sourcePath) (dest target )(pattern "#?.info") )
-
- (complete 85)
- (user 2)
-
-
- (if (<> mycpu "68000")
- (
- ; if its a 68000 - no FPU is possible ...
- (if (askbool (prompt #askfpu)
- (help #fpu-help)
- (choices #ask-function-1 #ask-function-2)
- (default 1)
- )
- (
- ; Yes, I have a FPU
- (copyfiles (source (tackon target "ray881")) (dest target) (newname "ray") (files) )
-
- )
- ; No, I have no FPU - Do nothing
- )
- )
- )
-
- (complete 95)
-
- (if (askbool (prompt (#xiprefs-start))
- (help (#xiprefs-start-help))
- (default 1)
- )
- (
- (set #xiprefs "XiPrefs_E") ; for initialisation
- (
- if (= @language "deutsch")
- (set #xiprefs "XiPrefs") ; for initialisation
- )
-
-
- (run (cat "\"" (tackon target #xiprefs) "\""))
- )
- )
- (complete 100)
- (user old_level)
-
- )
-
-