home *** CD-ROM | disk | FTP | other *** search
- /*
- ------------------------------------------------------------------------------
- This AREXX script will attempt to install all AREXX-Scripti scripts
-
- Host address: COMMAND
- Written by Jan Van Overbeke, 3-DEE, ©1993.
- Read the AREXX-Scripti doc for more info about rights!
- ------------------------------------------------------------------------------
- */
-
- say "This script will <attempt to> copy all AREXX-Scripti's"
- say 'to you rexx: directory.'
- say ''
- say 'Do you wish to continue? [y/n]'
- parse pull answ
-
- if answ='n' then exit
- say ''
-
- if ~exists('s:SPAT') then do
- say 'Error!'
- say 'Unable to find SPAT in your s: directory!'
- say 'SPAT can be found on your WorkBenck disks.'
- say 'In the same directory.'
- say 'See Ya.....'
- exit
- end
-
- if ~exists('c:COPY') then do
- say 'Error!'
- say 'Unable to find command COPY in your c: directory.'
- say 'COPY can be found on your WorkBench disks.'
- say 'In the same directory.'
- say 'See Ya.....'
- exit
- end
-
- /* ---- It should not happen, but if the directorynames in which ---- */
- /* ---- the appropriate scripts reside do not fit the list ---- */
- /* ---- you should : ---- */
- /* ---- or: change the directorynames ---- */
- /* ---- or: change the names in the list below, ---- */
- /* ---- fitting the real directorynames. ---- */
- /* ---- Thank you for your cooperation! ---- */
- /* ------------------------------------------------------------------ */
-
- call copier('Operation')
- call copier('General')
- call copier('ScreenModes')
- call copier('Renamers')
- call copier('ColorCorrection')
- call copier('Composition')
-
- say 'All done!'
- exit
-
-
- /* ------------------------------------------------------------------------ */
- copier:
-
- arg directory
- say 'Do you wish to install the "'directory'"-Scripts? [y/n]'
- parse pull answer
-
- if answer='y' then do
- found='yes'
- if ~exists(directory) then do
- say 'This directory can not be found!'
- found='no'
- say 'Perhaps it has another name!'
- say 'copy failed!!!!!'
- end
- if found='yes' then do
- say 'Copying all 'directory' Scripts to your rexx:'
- address command 'spat copy 'directory'/#?.rexx to rexx:'
- end
- end
-
- else say 'This copy cancelled.'
-
- say ''
- say ''
-