home *** CD-ROM | disk | FTP | other *** search
Wrap
; Installer for MacPict datatype ; 1997-06-30 by Bengt Engdahl <thenut@algonet.se> ; ; $VER: MacPict datatype Install 1.1 ; (set mpaintinst "You have the MacPaint datatype installed.\nThe recognition have to be replaced with the supplied one. It will work as good as the old one. If you don't wan't this, press 'Abort' now.\n\n(The old will be placed in Storage)") (set wheredoc (cat "Choose where you want the documentation to be installed. No drawer will be created there.")) (set whereclasses "Where do the (Graphic) DatatypeClasses belong?") (set ask0x0 "Choose which processor you have.") (askchoice (prompt ask0x0) (help @askchoice-help) (choices "68020+" "68000") (default 0) ) (set default-dest (askdir (prompt wheredoc) (help @askdir-help) (default @default-dest) ) ) (set @default-dest default-dest) (copyfiles (source "docs/AFD-COPYRIGHT") (dest @default-dest) (infos) ) (copyfiles (source "docs/AFD-COPYRIGHT.se") (dest @default-dest) (infos) ) (copyfiles (source "docs/MacPict2-dtc.guide") (dest @default-dest) (infos) ) (copyfiles (source "docs/MacPict2-dtc.readme") (dest @default-dest) ) (set classdir (askdir (prompt whereclasses) (help @askdir-help) (default "SYS:Classes/DataTypes") ) ) (if (exists ("SYS:Devs/DataTypes/MacPaint")) ( (message mpaintinst) (copyfiles (source "SYS:Devs/DataTypes/MacPaint") (dest "SYS:Storage/DataTypes/") (infos) ) (delete "SYS:Devs/DataTypes/MacPaint" (infos)) (copyfiles (source "MacPaint/MacPaint") (dest "SYS:Devs/DataTypes") (newname "MacPaint") (infos) ) ) ( (set nonsens_vet_ej_hur_loesas annars_This_Is_Just_A_Dummy) ) ) (if (= 0x0choice 0) ( (copyfiles (source "classes/datatypes/MacPict.DataType.020") (dest classdir) (newname "MacPict.dataType") ) ) ( (copyfiles (source "classes/datatypes/MacPict.DataType.000") (dest classdir) (newname "MacPict.dataType") ) ) ) (copyfiles (source "devs/datatypes/Macintosh PICT2") (dest "SYS:Devs/DataTypes") (newname "Macintosh PICT2") (infos) ) (run "C:AddDataTypes Refresh")