(set mpaintinst "You have the (CBM) MacPaint datatype installed.\nThe recognition have to be replaced with the supplied one. The new 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) Datatype Classes belong?")
(set ask0x0 "Choose which processor you have.")
(complete 0)
(set #cpu (database "cpu"))
(select
(askchoice
(prompt ask0x0)
(choices "68040" "68020" "68000")
(help
(cat "On machines with an 68020 processor or higher, like "
"the Amiga 1200, 2500, 3000 and 4000 you can select "
"the 68020 version, which is optimized for those "
"processors.\n\n"
"If you have an Amiga with a 68000 or 68010 processor, "
"like the standard version of the Amiga 500, 500+, "
"600, 2000 and you have upgraded to Kickstart 3.0 or "
"higher, then you must select the 68000 version.\n\n"
"If your Amiga has a 68040 or 68060 processor "
"then I recommend choosing the 68040 version.\n\n"
@askchoice-help)
)
(default 1)
(if (OR (= #cpu "68000") (= #cpu "68010"))
(default 2)
)
(if (OR(= #cpu "68040") (= #cpu "68060"))
(default 0)
)
)
(set dt_binary "MacPict.datatype.040")
(set dt_binary "MacPict.datatype.020")
(set dt_binary "MacPict.datatype.000")
)
; ===== Install datatype =====
(set classdir
(askdir
(prompt whereclasses)
(help @askdir-help)
(default "SYS:Classes/DataTypes")
)
)
(copyfiles
(source (tackon "classes/datatypes/" dt_binary))
(dest classdir)
(newname "MacPict.datatype")
)
(complete 20)
; ===== Remove old recognition part =====
(if (exists ("Devs:DataTypes/Macintosh PICT2"))
(delete "Devs:DataTypes/Macintosh PICT2" (infos))
)
; ===== Install recognition part =====
(copyfiles
(source "devs/datatypes/MacPICT2")
(dest "Devs:DataTypes")
(newname "MacPICT2")
(infos)
)
(complete 40)
; ===== Check for the old (CBM) MacPaint datatype recognition =====