Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / fish / memomaster / install
blob2863e9409f8c896cb878e5882e033a951de8ec8b
1 .key ver
2 .bra {
3 .ket }
4 ; This Scriptfile modifies the Startup-sequence to
5 ; insert the MemoMaster check command etc.
6 ECHO "The Amigaholics MemoMasterV2.0 utility."
7 ECHO "(c) Jeff Flynn of Amigaholics 1992"
8 ECHO ""
9 ECHO "Installation Script by *e[33m*e[1mGnome*e[35m*e[0m of *e[1mDMI.*e[0m"
10 ECHO ""
11 ECHO "Working, please wait..."
13 If NOT exists RAM:T
14 Makedir RAM:T
15 Assign T: RAM:T
16 Endif
18 Copy sys:c/copy ram:
19 ; Check for MemoMaster_V1.1
20 COPY sys:S/Startup-sequence T:MC-Del
21 SEARCH T:MC-Del MemoMaster quiet
22 IF NOT WARN
23 ECHO >T:MC-Kill "0(f/MemoMaster/;d;)"
24 EDIT T:MC-Del to T:MC-Deleted with T:MC-Kill ver=nil:
25 Copy T:MC-Deleted SYS:S/startup-sequence
26 ENDIF
28 COPY sys:S/Startup-sequence T:START
29 SEARCH T:START MM2 quiet
30 IF NOT WARN
31 ECHO "Your Startup-sequence has already been modified!"
32 SKIP MAINROUTINE
33 ENDIF
35 echo  >t:gnome "sb//*n"
36 echo >>t:gnome "p;b//; MemoMasterV2.0 INSTALLED."
37 echo >>t:gnome "f/LoadWB*n"
38 echo >>t:gnome "3sb//*n"
39 echo >>t:gnome "4p"
40 echo >>t:gnome "n;b//Path SYS: add"
41 echo >>t:gnome "n;b//Assign Memos: SYS:Memos"
42 echo >>t:gnome "n;b//MM2 check"
44 EDIT T:START to T:STARTER WITH t:gnome
45 COPY T:STARTER sys:S/Startup-sequence
46 Lab MAINROUTINE
47 If not exists sys:Memos
48 MAKEDIR Sys:Memos
49 Endif
51 Echo "Now we copy the main program to your disk..."
52 If NOT EXISTS SYS:C/Echo
53 setenv ver :MEMOMASTER/Icons/MM24.info
54 skip WB2
55 ELSE
56 .def ver=:MEMOMASTER/Icons/MM13.info
57 skip WB1
58 Endif
59 Lab WB2
60 copy from $ver to ram:MM2.info
61 skip CONT
62 Lab WB1
63 copy from {ver} to ram:MM2.info
64 Lab CONT
65 copy from :MEMOMASTER/MM2 to ram:
66 copy from ram:MM2 to SYS:
67 copy from ram:MM2.info to SYS:
68 delete ram:M#? quiet
69 delete ram:copy
70 if exists t:STARTER
71 delete t:STARTER t:gnome quiet
72 Endif
73 ;Clean-up
74 If EXISTS SYS:C/MemoMaster
75 Ask "Shall I delete the old *e[1m*e[33mMemoMaster *e[0m*e[35mprogram ?"
76 If WARN
77 delete sys:c/MemoMaster
78 Endif
79 Endif
81 LAB END
82 cd SYS:
83 delete t:START
84 Echo "*e[33m*e[1mOK. JOB FINISHED"
85 delete T:MC#? quiet