Changeset 308


Ignore:
Timestamp:
Jun 27, 2006, 2:27:28 AM (19 years ago)
Author:
root
Message:

Support tarlist.cmd install
Support archiver.tmp install
Drop tarlist.cmd support - now obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.cmd

    r254 r308  
    2525   For usage help, run as INSTALL /?
    2626
    27    08 Aug 05 SHL Add JFSOPT support
     27   08 Aug 05 SHL Support jfsopt.cmd install
    2828   16 Aug 05 SHL Ensure folder icon gets updated if folder exists
     29   16 Aug 05 SHL Support tarlist.cmd install
     30   18 Aug 05 SHL Support archiver.tmp install
     31   08 Dec 05 SHL Drop tarlist.cmd support - now obsolete
    2932
    3033*/
     
    369372
    370373rc = stream('sysinfo.exe','c','query exists')
     374/* fixme to be really gone? */
    371375if rc \= '' then
    372376/*
     
    418422end
    419423
     424/* fixme to use newview if installed? */
    420425rc = stream('FM3.HLP','c','query exists')
    421426if rc \= '' then
     
    528533end
    529534'DEL HPFSOPT.TMP 1>NUL 2>NUL'
    530 rc = stream('JFSOPT.CMD','c','query exists')
    531 if rc = '' then
    532 do
    533   rc = stream('JFSOPT.TMP','c','query exists')
    534   if rc \= '' then
    535   do
    536     say 'Creating a sample JFSOPT.CMD file for you.'
    537     'REN JFSOPT.TMP JFSOPT.CMD 1>NUL 2>NUL'
    538   end
    539 end
    540 'DEL JFSOPT.TMP 1>NUL 2>NUL'
     535
     536call InstallFile 'JFSOPT.CMD' 'JFSOPT.TMP'
     537
    541538rc = stream('FATOPT.CMD','c','query exists')
    542539if rc = '' then
     
    550547end
    551548'DEL FATOPT.TMP 1>NUL 2>NUL'
     549
     550call InstallFile 'ARCHIVER.BB2' 'ARCHIVER.TMP'
    552551
    553552rc = stream('QUICKTLS.DAT','c','query exists')
     
    12201219say "I'm done now."
    12211220say ''
     1221
     1222exit
     1223
     1224/* InstallFile(file, template) install one file from template */
     1225
     1226InstallFile: procedure
     1227
     1228  parse arg sFile sTemplate
     1229
     1230  rc = stream(sFile,'c','query exists')
     1231  if rc = '' then do
     1232    rc = stream(sTemplate,'c','query exists')
     1233    if rc \= '' then do
     1234      say 'Creating a sample' sFile 'file for you.'
     1235      'ren' sTemplate sFile '1>nul 2>nul'
     1236    end
     1237  end
     1238  'del' sTemplate '1>nul 2>nul'
     1239
     1240  return
     1241
     1242  /* end InstallFile */
Note: See TracChangeset for help on using the changeset viewer.