Home » Archimedes archive » Apps » ISO Pascal - Release 2 1.00 (1989)(Acorn Computers).adf » installNET » Compare

Compare installNET with installNEX

File: Archimedes archive » Apps » ISO Pascal - Release 2 1.00 (1989)(Acorn Computers).adf » installNET
Compared with: Archimedes archive » Apps » ISO Pascal - Release 2 1.00 (1989)(Acorn Computers).adf » installNEX
Similarity: 100% of bytes duplicated

371 of 373 lines (99.5%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

installNET installNEX
10REM > InstallNET 10REM > InstallNET
20: 20:
30MODE 0 :REM <<< MAIN PROGRAM >>> 30MODE 0 :REM <<< MAIN PROGRAM >>>
40DIM copyarea &4B000 40DIM copyarea &4B000
50PROCcopyright 50PROCcopyright
60net%=FNnet_or_HardDisc 60net%=FNnet_or_HardDisc
70PROCinitialise 70PROCinitialise
80PROCfront_page 80PROCfront_page
90PROClibrary 90PROClibrary
100PROCresources 100PROCresources
110PROCusers 110PROCusers
120PROCend 120PROCend
130END 130END
140: 140:
150DEF PROCcopyright :REM <<< MODULES >>> 150DEF PROCcopyright :REM <<< MODULES >>>
160REM Archimedes application installation program 160REM Archimedes application installation program
170REM Henry Howarth, July 1988 170REM Henry Howarth, July 1988
180REM Copyright Acorn Computers Limited 1988 180REM Copyright Acorn Computers Limited 1988
190ENDPROC 190ENDPROC
200: 200:
210DEF FNnet_or_HardDisc 210DEF FNnet_or_HardDisc
220DIM buffer 255 220DIM buffer 255
230SYS "XOS_ReadVarVal", "HD$Install", buffer, -1 TO r0,r1,r2 230SYS "XOS_ReadVarVal", "HD$Install", buffer, -1 TO r0,r1,r2
240IF r2=0 THEN PROCcli("set HD$Install FALSE") 240IF r2=0 THEN PROCcli("set HD$Install FALSE")
250SYS "OS_ReadVarVal", "HD$Install", buffer, 255-1,0 TO r0,r1,r2 250SYS "OS_ReadVarVal", "HD$Install", buffer, 255-1,0 TO r0,r1,r2
260buffer?r2=&0D 260buffer?r2=&0D
270CASE $buffer OF 270CASE $buffer OF
280WHEN "FALSE":net%=TRUE 280WHEN "FALSE":net%=TRUE
290WHEN "TRUE" :net%=FALSE 290WHEN "TRUE" :net%=FALSE
300OTHERWISE: PRINT '"HD$Install has incorrect value!"':PROCabort 300OTHERWISE: PRINT '"HD$Install has incorrect value!"':PROCabort
310ENDCASE 310ENDCASE
320SYS "OS_SetVarVal", "HD$Install", buffer, -1 320SYS "OS_SetVarVal", "HD$Install", buffer, -1
330= net% 330= net%
340: 340:
350DEF PROCinitialise 350DEF PROCinitialise
360READ application$ 360READ application$
370READ S$,D_NET$,D_HD$ 370READ S$,D_NET$,D_HD$
380CASE net% OF 380CASE net% OF
390WHEN 0 :D$ = D_HD$ :medium$ = " hard disc " 390WHEN 0 :D$ = D_HD$ :medium$ = " hard disc "
400WHEN -1 :D$ = D_NET$ :medium$ = " Econet " 400WHEN -1 :D$ = D_NET$ :medium$ = " Econet "
410ENDCASE 410ENDCASE
420ENDPROC 420ENDPROC
430: 430:
440DEF PROCfront_page 440DEF PROCfront_page
450REPEAT 450REPEAT
460CLS 460CLS
470PRINT '' 470PRINT ''
480PRINT "Archimedes software installation" 480PRINT "Archimedes software installation"
490PRINT "________________________________"''' 490PRINT "________________________________"'''
500: 500:
510PRINT "Version 1.00"' 510PRINT "Version 1.00"'
520PRINT "25 July 1988"' 520PRINT "25 July 1988"'
530PRINT "For " + application$'' 530PRINT "For " + application$''
540PRINT "Installs application on" + medium$ + "from floppy disc supplied."'' 540PRINT "Installs application on" + medium$ + "from floppy disc supplied."''
550PRINT "You are advised to read the further information provided before "' 550PRINT "You are advised to read the further information provided before "'
560PRINT "installing this application:"'' 560PRINT "installing this application:"''
570PRINT " * press ESC to leave the program "' 570PRINT " * press ESC to leave the program "'
580PRINT " * press SPACE BAR for further information "' 580PRINT " * press SPACE BAR for further information "'
590PRINT " * press RETURN to install " + application$' 590PRINT " * press RETURN to install " + application$'
600: 600:
610REPEAT 610REPEAT
620*FX 15,1 620*FX 15,1
630g=GET:UNTIL (g=13 OR g=32) 630g=GET:UNTIL (g=13 OR g=32)
640IF g=32 THEN PROCfurther_information 640IF g=32 THEN PROCfurther_information
650UNTIL g=13 650UNTIL g=13
660CLS 660CLS
670ENDPROC 670ENDPROC
680: 680:
690DEF PROClibrary :PROCblock("COPYING LIBRARY OBJECTS") :ENDPROC 690DEF PROClibrary :PROCblock("COPYING LIBRARY OBJECTS") :ENDPROC
700DEF PROCresources:PROCblock("COPYING RESOURCE OBJECTS"):ENDPROC 700DEF PROCresources:PROCblock("COPYING RESOURCE OBJECTS"):ENDPROC
710: 710:
720DEF PROCusers 720DEF PROCusers
730PROCread_user_objects 730PROCread_user_objects
740PRINT '"COPYING USER OBJECTS"' 740PRINT '"COPYING USER OBJECTS"'
750READ Spath$ 750READ Spath$
760READ user$ 760READ user$
770WHILE (user$ <> "end" AND user$ <> "END" AND user$ <> "End") 770WHILE (user$ <> "end" AND user$ <> "END" AND user$ <> "End")
780Dpath$ = user$ 780Dpath$ = user$
790PROCpath 790PROCpath
800FOR I%=1 TO obj% 800FOR I%=1 TO obj%
810flag% = flag%(I%):name$ = name$(I%) 810flag% = flag%(I%):name$ = name$(I%)
820IF net% THEN acc$ = NETacc$(I%) ELSE acc$ = HDacc$(I%) 820IF net% THEN acc$ = NETacc$(I%) ELSE acc$ = HDacc$(I%)
830PROCobject(flag%,name$,acc$) 830PROCobject(flag%,name$,acc$)
840NEXT I% 840NEXT I%
850READ user$ 850READ user$
860ENDWHILE 860ENDWHILE
870ENDPROC 870ENDPROC
880: 880:
890DEF PROCend:PRINT '"Installation completed."':ENDPROC 890DEF PROCend:PRINT '"Installation completed."':ENDPROC
900: 900:
910DEF PROCfurther_information 910DEF PROCfurther_information
920: 920:
930CLS 930CLS
940PRINT 940PRINT
950PRINT "Further Information" 950PRINT "Further Information"
960PRINT "___________________" 960PRINT "___________________"
970PRINT 970PRINT
980PRINT 980PRINT
990PRINT "The installation program, as supplied, assumes the default set up for "' 990PRINT "The installation program, as supplied, assumes the default set up for "'
1000PRINT "a hard disc (HD) or network (NET), as illustrated in the "' 1000PRINT "a hard disc (HD) or network (NET), as illustrated in the "'
1010PRINT "'Installation' section of the user manual. "' 1010PRINT "'Installation' section of the user manual. "'
1020PRINT 1020PRINT
1030PRINT "In particular, the program assumes the names '$.Library' and "' 1030PRINT "In particular, the program assumes the names '$.Library' and "'
1040PRINT "'$.Arthurlib' (HD and NET respectively) for the library, and is set "' 1040PRINT "'$.Arthurlib' (HD and NET respectively) for the library, and is set "'
1050PRINT "to install a single (default) user. "' 1050PRINT "to install a single (default) user. "'
1060PRINT 1060PRINT
1070PRINT "You may wish to install the applications differently, and you can use "' 1070PRINT "You may wish to install the applications differently, and you can use "'
1080PRINT "this program for this purpose. It is written in BASIC, and you will "' 1080PRINT "this program for this purpose. It is written in BASIC, and you will "'
1090PRINT "need to be able to load, edit and save a BASIC program (covered in the"' 1090PRINT "need to be able to load, edit and save a BASIC program (covered in the"'
1100PRINT "User Guide). "' 1100PRINT "User Guide). "'
1110PRINT 1110PRINT
1120PROCspace_bar 1120PROCspace_bar
1130PRINT 1130PRINT
1140PRINT 1140PRINT
1150PRINT "The name of this program is 'installNET'; the program 'installHD' only"' 1150PRINT "The name of this program is 'installNET'; the program 'installHD' only"'
1160PRINT "sets a flag to indicate HD installation before running 'installNET'. "' 1160PRINT "sets a flag to indicate HD installation before running 'installNET'. "'
1170PRINT 1170PRINT
1180PRINT "Multiple users: "' 1180PRINT "Multiple users: "'
1190PRINT 1190PRINT
1200PRINT "If you want to install the application for a number of users on the "' 1200PRINT "If you want to install the application for a number of users on the "'
1210PRINT "network (or a number of directories on a hard disc), you need to alter"' 1210PRINT "network (or a number of directories on a hard disc), you need to alter"'
1220PRINT "the final line of the program. "' 1220PRINT "the final line of the program. "'
1230PRINT 1230PRINT
1240PRINT "This is a DATA statement consisting of a list of user names terminated"' 1240PRINT "This is a DATA statement consisting of a list of user names terminated"'
1250PRINT "by 'end'. "' 1250PRINT "by 'end'. "'
1260PRINT 1260PRINT
1270PRINT "As supplied, there may only be a single user, (and if a null string, "' 1270PRINT "As supplied, there may only be a single user, (and if a null string, "'
1280PRINT "two double-quotes, this indicates the user is installed in the root "' 1280PRINT "two double-quotes, this indicates the user is installed in the root "'
1290PRINT "directory, $). "' 1290PRINT "directory, $). "'
1300PRINT 1300PRINT
1310PROCspace_bar 1310PROCspace_bar
1320PRINT 1320PRINT
1330PRINT 1330PRINT
1340PRINT "To install the application for users Rachel, Tim and Sue, for example,"' 1340PRINT "To install the application for users Rachel, Tim and Sue, for example,"'
1350PRINT "you need to edit this last line so that it now reads: "' 1350PRINT "you need to edit this last line so that it now reads: "'
1360PRINT 1360PRINT
1370PRINT " DATA Rachel, Tim, Sue, end "' 1370PRINT " DATA Rachel, Tim, Sue, end "'
1380PRINT 1380PRINT
1390PRINT "Now when you run the program, logged on to the network with system "' 1390PRINT "Now when you run the program, logged on to the network with system "'
1400PRINT "status, the directories $.Rachel, $.Tim and $.Sue will be created (if "' 1400PRINT "status, the directories $.Rachel, $.Tim and $.Sue will be created (if "'
1410PRINT "necessary) and the user files installed there. "' 1410PRINT "necessary) and the user files installed there. "'
1420PRINT 1420PRINT
1430PRINT "N.B. the program will only cope with user names nested two deep :- "' 1430PRINT "N.B. the program will only cope with user names nested two deep :- "'
1440PRINT "i.e. 'Jim' and 'Class4.Jim' are acceptable, but not 'Art.Class4.Jim' "' 1440PRINT "i.e. 'Jim' and 'Class4.Jim' are acceptable, but not 'Art.Class4.Jim' "'
1450PRINT 1450PRINT
1460PRINT "Consult the user manual for further information required to enable "' 1460PRINT "Consult the user manual for further information required to enable "'
1470PRINT "Rachel, Tim and Sue to log on and run the application. "' 1470PRINT "Rachel, Tim and Sue to log on and run the application. "'
1480PRINT 1480PRINT
1490PROCspace_bar 1490PROCspace_bar
1500PRINT 1500PRINT
1510PRINT 1510PRINT
1520PRINT "Library names: "' 1520PRINT "Library names: "'
1530PRINT 1530PRINT
1540PRINT "To alter the name of the library used for installation, you need to "' 1540PRINT "To alter the name of the library used for installation, you need to "'
1550PRINT "edit another line of data. "' 1550PRINT "edit another line of data. "'
1560PRINT 1560PRINT
1570PRINT "All the data for the program is at the end of the listing, and is "' 1570PRINT "All the data for the program is at the end of the listing, and is "'
1580PRINT "arranged in blocks. "' 1580PRINT "arranged in blocks. "'
1590PRINT 1590PRINT
1600PRINT "The start of the data is indicated by ':REM <<< DATA >>>', and the "' 1600PRINT "The start of the data is indicated by ':REM <<< DATA >>>', and the "'
1610PRINT "block you require is the third in order, called 'REM LIBRARY'. "' 1610PRINT "block you require is the third in order, called 'REM LIBRARY'. "'
1620PRINT 1620PRINT
1630PROCspace_bar 1630PROCspace_bar
1640PRINT 1640PRINT
1650PRINT 1650PRINT
1660PRINT "As indicated by the REMark above it, the first DATA statement provides"' 1660PRINT "As indicated by the REMark above it, the first DATA statement provides"'
1670PRINT "the directory names of the library on the source floppy, the network "' 1670PRINT "the directory names of the library on the source floppy, the network "'
1680PRINT "and the hard disc, and will probably read: "' 1680PRINT "and the hard disc, and will probably read: "'
1690PRINT 1690PRINT
1700PRINT " DATA Library, Arthurlib, Library "' 1700PRINT " DATA Library, Arthurlib, Library "'
1710PRINT 1710PRINT
1720PRINT "If, for example, the name of the library on your network is '$.Utils' "' 1720PRINT "If, for example, the name of the library on your network is '$.Utils' "'
1730PRINT "then you will need to edit this line so that it now reads: "' 1730PRINT "then you will need to edit this line so that it now reads: "'
1740PRINT 1740PRINT
1750PRINT " DATA Library, Utils, Library "' 1750PRINT " DATA Library, Utils, Library "'
1760PRINT 1760PRINT
1770PROCspace_bar 1770PROCspace_bar
1780IF net% THEN PROCnet_info 1780IF net% THEN PROCnet_info
1790ENDPROC 1790ENDPROC
1800: 1800:
1810DEF PROCnet_info 1810DEF PROCnet_info
1820PRINT 1820PRINT
1830PRINT "Network Installation" 1830PRINT "Network Installation"
1840PRINT "____________________" 1840PRINT "____________________"
1850PRINT 1850PRINT
1860PRINT 1860PRINT
1870PRINT "Site licence: "' 1870PRINT "Site licence: "'
1880PRINT 1880PRINT
1890PRINT "You need a site licence to install and run this application on an "' 1890PRINT "You need a site licence to install and run this application on an "'
1900PRINT "Econet network. "' 1900PRINT "Econet network. "'
1910PRINT 1910PRINT
1920PRINT "Econet module updates: "' 1920PRINT "Econet module updates: "'
1930PRINT 1930PRINT
1940PRINT "If you have Arthur 1.2, you are advised to use the Archimedes Econet "' 1940PRINT "If you have Arthur 1.2, you are advised to use the Archimedes Econet "'
1950PRINT "software module updates; contact your LEA advisor or Acorn dealer for"' 1950PRINT "software module updates; contact your LEA advisor or Acorn dealer for"'
1960PRINT "further information. "' 1960PRINT "further information. "'
1970PRINT 1970PRINT
1980PROCspace_bar 1980PROCspace_bar
1990ENDPROC 1990ENDPROC
2000: 2000:
2010DEF PROCblock(block$) 2010DEF PROCblock(block$)
2020PRINT 'block$' 2020PRINT 'block$'
2030READ Spath$, NETpath$, HDpath$ 2030READ Spath$, NETpath$, HDpath$
2040IF net% THEN Dpath$ = NETpath$ ELSE Dpath$ = HDpath$ 2040IF net% THEN Dpath$ = NETpath$ ELSE Dpath$ = HDpath$
2050PROCpath 2050PROCpath
2060READ flag%,name$,NETacc$,HDacc$ 2060READ flag%,name$,NETacc$,HDacc$
2070WHILE flag%<>0 2070WHILE flag%<>0
2080IF net% THEN acc$ = NETacc$ ELSE acc$ = HDacc$ 2080IF net% THEN acc$ = NETacc$ ELSE acc$ = HDacc$
2090PROCobject(flag%,name$,acc$) 2090PROCobject(flag%,name$,acc$)
2100READ flag%,name$,NETacc$,HDacc$ 2100READ flag%,name$,NETacc$,HDacc$
2110ENDWHILE 2110ENDWHILE
2120ENDPROC 2120ENDPROC
2130: 2130:
2140DEF PROCread_user_objects 2140DEF PROCread_user_objects
2150READ obj% 2150READ obj%
2160DIM flag%(obj%),name$(obj%),NETacc$(obj%),HDacc$(obj%) 2160DIM flag%(obj%),name$(obj%),NETacc$(obj%),HDacc$(obj%)
2170FOR I%=1 TO obj% 2170FOR I%=1 TO obj%
2180READ flag%(I%),name$(I%),NETacc$(I%),HDacc$(I%) 2180READ flag%(I%),name$(I%),NETacc$(I%),HDacc$(I%)
2190NEXT I% 2190NEXT I%
2200ENDPROC 2200ENDPROC
2210: 2210:
2220DEF PROCpath 2220DEF PROCpath
2230temp$ = Dpath$:double% = INSTR(Dpath$,".") 2230temp$ = Dpath$:double% = INSTR(Dpath$,".")
2240IF double% THEN Dpath$ = LEFT$(Dpath$,double%-1):PROCobject(2,"","L") 2240IF double% THEN Dpath$ = LEFT$(Dpath$,double%-1):PROCobject(2,"","L")
2250Dpath$ = temp$:PROCobject(2,"","L"):double%=0 2250Dpath$ = temp$:PROCobject(2,"","L"):double%=0
2260ENDPROC 2260ENDPROC
2270: 2270:
2280DEF PROCobject(flag%,name$,acc$) 2280DEF PROCobject(flag%,name$,acc$)
2290PROCset_object_variables 2290PROCset_object_variables
2300PROCcheck_source 2300PROCcheck_source
2310IF dest$ <> D$ THEN PROCwrite_destination 2310IF dest$ <> D$ THEN PROCwrite_destination
2320ENDPROC 2320ENDPROC
2330: 2330:
2340DEF PROCset_object_variables 2340DEF PROCset_object_variables
2350source$ = FNobject_name(S$, Spath$, name$) 2350source$ = FNobject_name(S$, Spath$, name$)
2360dest$ = FNobject_name(D$, Dpath$, name$) 2360dest$ = FNobject_name(D$, Dpath$, name$)
2370CASE flag% OF 2370CASE flag% OF
2380WHEN 1: object$ = "file":mis_match$ = "directory" 2380WHEN 1: object$ = "file":mis_match$ = "directory"
2390WHEN 2: object$ = "directory":mis_match$ = "file" 2390WHEN 2: object$ = "directory":mis_match$ = "file"
2400ENDCASE 2400ENDCASE
2410ENDPROC 2410ENDPROC
2420: 2420:
2430DEF PROCcheck_source 2430DEF PROCcheck_source
2440case0$ = object$ + " " + source$ + " not found" 2440case0$ = object$ + " " + source$ + " not found"
2450case1$ = source$ + " should be a " + object$ + ", not a " + mis_match$ 2450case1$ = source$ + " should be a " + object$ + ", not a " + mis_match$
2460case2$ = object$ + STRING$(10-LENobject$," ") + source$ 2460case2$ = object$ + STRING$(10-LENobject$," ") + source$
2470source%=FNosfile_5(source$,flag%) 2470source%=FNosfile_5(source$,flag%)
2480CASE source% OF 2480CASE source% OF
2490WHEN 0:PRINT "Omission on release disc! - "'' + case0$':PROCabort 2490WHEN 0:PRINT "Omission on release disc! - "'' + case0$':PROCabort
2500WHEN 1:PRINT "Mismatch on release disc! - "'' + case1$':PROCabort 2500WHEN 1:PRINT "Mismatch on release disc! - "'' + case1$':PROCabort
2510WHEN 2:REM case2$ (correct type of object found on release disc) 2510WHEN 2:REM case2$ (correct type of object found on release disc)
2520ENDCASE 2520ENDCASE
2530ENDPROC 2530ENDPROC
2540: 2540:
2550DEF PROCwrite_destination 2550DEF PROCwrite_destination
2560dest% = FNosfile_5(dest$,flag%) 2560dest% = FNosfile_5(dest$,flag%)
2570IF flag%=1 THEN PROCfile ELSE PROCdirectory 2570IF flag%=1 THEN PROCfile ELSE PROCdirectory
2580PROCcli("ACCESS " + dest$ + " " + acc$) 2580PROCcli("ACCESS " + dest$ + " " + acc$)
2590REM PROCpress_key 2590REM PROCpress_key
2600ENDPROC 2600ENDPROC
2610: 2610:
2620DEF PROCfile 2620DEF PROCfile
2630CASE dest% OF 2630CASE dest% OF
2640WHEN 0:PROCcopy_file 2640WHEN 0:PROCcopy_file
2650WHEN 1:IF FNoverwrite THEN PROCwipe_dir:PROCcopy_file ELSE PROCabort 2650WHEN 1:IF FNoverwrite THEN PROCwipe_dir:PROCcopy_file ELSE PROCabort
2660WHEN 2:IF FNoverwrite THEN PROCdel_file:PROCcopy_file ELSE PROCabort 2660WHEN 2:IF FNoverwrite THEN PROCdel_file:PROCcopy_file ELSE PROCabort
2670ENDCASE 2670ENDCASE
2680ENDPROC 2680ENDPROC
2690: 2690:
2700DEF PROCdirectory 2700DEF PROCdirectory
2710CASE dest% OF 2710CASE dest% OF
2720WHEN 0:PROCcdir 2720WHEN 0:PROCcdir
2730WHEN 1:IF FNoverwrite THEN PROCdel_file:PROCcdir ELSE PROCabort 2730WHEN 1:IF FNoverwrite THEN PROCdel_file:PROCcdir ELSE PROCabort
2740WHEN 2:PRINT "directory " + dest$ + " already exists" 2740WHEN 2:PRINT "directory " + dest$ + " already exists"
2750ENDCASE 2750ENDCASE
2760ENDPROC 2760ENDPROC
2770: 2770:
2780DEF FNoverwrite 2780DEF FNoverwrite
2790LOCAL type$ 2790LOCAL type$
2800CASE dest% OF 2800CASE dest% OF
2810WHEN 1:type$ = mis_match$ 2810WHEN 1:type$ = mis_match$
2820WHEN 2:type$ = object$ 2820WHEN 2:type$ = object$
2830ENDCASE 2830ENDCASE
2840PRINT '"Warning! " + dest$ + " already exists as a " + type$ 2840PRINT '"Warning! " + dest$ + " already exists as a " + type$
2850PRINT '"Overwrite?(Y/N) "; 2850PRINT '"Overwrite?(Y/N) ";
2860LOCAL G$, yes%, no%:yes%=FALSE:no%=FALSE 2860LOCAL G$, yes%, no%:yes%=FALSE:no%=FALSE
2870REPEAT 2870REPEAT
2880*FX 15,1 2880*FX 15,1
2890G$=GET$ 2890G$=GET$
2900yes%=(G$="Y" OR G$="y"):no%=(G$="N" OR G$="n") 2900yes%=(G$="Y" OR G$="y"):no%=(G$="N" OR G$="n")
2910UNTIL (yes% OR no%) 2910UNTIL (yes% OR no%)
2920PRINT G$' 2920PRINT G$'
2930= yes% 2930= yes%
2940: 2940:
2950DEF FNosfile_5(obj$,flag%) 2950DEF FNosfile_5(obj$,flag%)
2960LOCAL type%,return% 2960LOCAL type%,return%
2970type%=0:return%=0 2970type%=0:return%=0
2980SYS "OS_File",5,obj$ TO type% 2980SYS "OS_File",5,obj$ TO type%
2990IF type% = 0 THEN return% = 0 :REM Not found 2990IF type% = 0 THEN return% = 0 :REM Not found
3000IF (type% > 0 AND type% <> flag%) THEN return% = 1 :REM Object mis-match 3000IF (type% > 0 AND type% <> flag%) THEN return% = 1 :REM Object mis-match
3010IF (type% > 0 AND type% = flag%) THEN return% = 2 :REM Object match 3010IF (type% > 0 AND type% = flag%) THEN return% = 2 :REM Object match
3020= return% 3020= return%
3030: 3030:
3040DEF FNobject_name(a$,b$,c$) 3040DEF FNobject_name(a$,b$,c$)
3050IF b$ <> "" THEN a$ = a$ + "." + b$ 3050IF b$ <> "" THEN a$ = a$ + "." + b$
3060IF c$ <> "" THEN a$ = a$ + "." + c$ 3060IF c$ <> "" THEN a$ = a$ + "." + c$
3070= a$ 3070= a$
3080: 3080:
3090DEF PROCcopy_file:LOCAL copy_opt$:copy_opt$="~C~D~F~P~Q~R~V" 3090DEF PROCcopy_file:LOCAL copy_opt$:copy_opt$="~C~D~F~P~Q~R~V"
3100LOCAL type,load,exec,length,how%,X 3100LOCAL type,load,exec,length,how%,X
3110X=OPENUP(source$):length=EXT#X:CLOSE#X:how%=(length <= &4B000) 3110X=OPENUP(source$):length=EXT#X:CLOSE#X:how%=(length <= &4B000)
3120CASE how% OF 3120CASE how% OF
3130WHEN 0 :PROCcli("COPY " + source$ + " " + dest$ + " " + copy_opt$) 3130WHEN 0 :PROCcli("COPY " + source$ + " " + dest$ + " " + copy_opt$)
3140WHEN -1:SYS "OS_File",&FF,source$,copyarea,0 TO type,,load,exec,length 3140WHEN -1:SYS "OS_File",&FF,source$,copyarea,0 TO type,,load,exec,length
3150SYS "OS_File",0,dest$,load,exec,copyarea,(copyarea + length) 3150SYS "OS_File",0,dest$,load,exec,copyarea,(copyarea + length)
3160ENDCASE 3160ENDCASE
3170PRINT case2$ + " copied as " + dest$ 3170PRINT case2$ + " copied as " + dest$
3180ENDPROC 3180ENDPROC
3190: 3190:
3200DEF PROCabort:PRINT '"Installation aborted."':END:ENDPROC 3200DEF PROCabort:PRINT '"Installation aborted."':END:ENDPROC
3210DEF PROCcli(s$):OSCLI(s$):ENDPROC 3210DEF PROCcli(s$):OSCLI(s$):ENDPROC
3220DEF PROCcdir:PROCcli("CDIR " + dest$) 3220DEF PROCcdir:PROCcli("CDIR " + dest$)
3230IF double%=0 THEN PRINT case2$+" created as " + dest$ 3230IF double%=0 THEN PRINT case2$+" created as " + dest$
3240ENDPROC 3240ENDPROC
3250DEF PROCdel_file:PROCcli("ACCESS " + dest$):PROCcli("DELETE "+dest$):ENDPROC 3250DEF PROCdel_file:PROCcli("ACCESS " + dest$):PROCcli("DELETE "+dest$):ENDPROC
3260DEF PROCspace_bar:PRINT " * press SPACE BAR to continue":LOCAL g 3260DEF PROCspace_bar:PRINT " * press SPACE BAR to continue":LOCAL g
3270REPEAT:*FX 15,1 3270REPEAT:*FX 15,1
3280g=GET:UNTIL g=32:CLS 3280g=GET:UNTIL g=32:CLS
3290ENDPROC 3290ENDPROC
3300DEF PROCwipe_dir:PROCcli("WIPE " + dest$ + " VFR"):ENDPROC 3300DEF PROCwipe_dir:PROCcli("WIPE " + dest$ + " VFR"):ENDPROC
3310: 3310:
3320REM APPLICATION :REM <<< DATA >>> 3320REM APPLICATION :REM <<< DATA >>>
3330DATA "Pascal release 2" 3330DATA "Pascal release 2"
3340: 3340:
3350REM ROOTS 3350REM ROOTS
3360REM source, network (NET), hard disc (HD) 3360REM source, network (NET), hard disc (HD)
3370DATA "ADFS::0.$", "NET:$", "ADFS::4.$" 3370DATA "ADFS::0.$", "NET:$", "ADFS::4.$"
3380: 3380:
3390REM LIBRARY 3390REM LIBRARY
3400REM source, network (NET), hard disc (HD) 3400REM source, network (NET), hard disc (HD)
3410DATA Library, Arthurlib, !Boot.Library 3410DATA Library, Arthurlib, Library
3420REM LIBRARY OBJECTS 3420REM LIBRARY OBJECTS
3430REM type, object name, NET access, HD access 3430REM type, object name, NET access, HD access
3440DATA 1, fpe, LR/R, LR 3440DATA 1, fpe, LR/R, LR
3450DATA 2, lib, L, L 3450DATA 2, lib, L, L
3460DATA 1, lib.paslib, LR/R, LR 3460DATA 1, lib.paslib, LR/R, LR
3470DATA 1, link, LR/R, LR 3470DATA 1, link, LR/R, LR
3480DATA 1, pascal, LR/R, LR 3480DATA 1, pascal, LR/R, LR
3490DATA 0, end, end, end 3490DATA 0, end, end, end
3500: 3500:
3510REM RESOURCES 3510REM RESOURCES
3520REM source, network (NET), hard disc (HD) 3520REM source, network (NET), hard disc (HD)
3530DATA "", "", "" 3530DATA "", "", ""
3540REM RESOURCE OBJECTS 3540REM RESOURCE OBJECTS
3550REM type, object name, NET access, HD access 3550REM type, object name, NET access, HD access
3560DATA 0, end, end, end 3560DATA 0, end, end, end
3570: 3570:
3580REM USER OBJECTS 3580REM USER OBJECTS
3590REM number of objects 3590REM number of objects
3600DATA 5 3600DATA 5
3610REM type, object name, NET access, HD access 3610REM type, object name, NET access, HD access
3620DATA 2, aof, L, L 3620DATA 2, aof, L, L
3630DATA 2, lis, L, L 3630DATA 2, lis, L, L
3640DATA 2, pas, L, L 3640DATA 2, pas, L, L
3650DATA 1, pas.HelloW, WR/, WR 3650DATA 1, pas.HelloW, WR/, WR
3660DATA 2, tmp, L, L 3660DATA 2, tmp, L, L
3670: 3670:
3680REM USERS 3680REM USERS
3690REM source 3690REM source
3700DATA "" 3700DATA ""
3710REM user1, user2, etc.. 3710REM user1, user2, etc..
3720DATA Pascal, end 3720DATA "", end
3730 3730