home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / utilities / uncfs / Documents / ASCII < prev    next >
Encoding:
Text File  |  1994-07-23  |  22.1 KB  |  756 lines

  1.  
  2.  
  3.  
  4.                        UNCFS, a productivity tool
  5.  
  6.  
  7.                        version 1.20 23rd July 1994
  8.  
  9.  
  10.                 Copyright (c) Cy Booker, 1992, 1993, 1994
  11.  
  12.  
  13.  
  14.                 Synopsis                                 1
  15.  
  16.                 Warranty                                 1
  17.  
  18.                 ShareWare                                2
  19.  
  20.                 Registering                              4
  21.  
  22.                 Why use UnCFS                            5
  23.  
  24.                 Typical usage of UnCFS                   6
  25.  
  26.                 Important Preamble                       7
  27.  
  28.                 Installing UnCFS                         8
  29.  
  30.                 Troubleshooting !Install                 8
  31.  
  32.                 Patching Applications                    9
  33.  
  34.                 The Choices Window                      10
  35.  
  36.                     Multitask                           10
  37.  
  38.                     Faster                              10
  39.  
  40.                     Small files                         10
  41.  
  42.                     Delete !Boot                        11
  43.  
  44.                     Outline Fonts                       11
  45.  
  46.                     Save Choices                        11
  47.  
  48.                 Troubleshooting !UnCFS                  12
  49.  
  50.                 Un-installing UnCFS                     13
  51.  
  52.                 Troubleshooting !UnInstall              13
  53.  
  54.                 How UnCFS works                         14
  55.  
  56.                 Technical Details                       14
  57.  
  58.                 Registration Form                       16
  59.  
  60.  
  61.  
  62.                                  Page 1
  63.  
  64.  
  65.  
  66. Synopsis:
  67.  
  68.  
  69.  
  70.  
  71.         This program (UnCFS) is only of use with Computer
  72.         Concepts' Compression filing system (CFS), on a Risc OS
  73.         machine.  You also require Acorns' outline Font Manager
  74.         to run the installation applications, but not for normal
  75.         use. 
  76.  
  77.  
  78.         UnCFS dramatically speeds up the loading time of
  79.         applications stored under the CFS, and does so in a
  80.         completely transparent way. 
  81.  
  82.  
  83.  
  84. Warranty:
  85.  
  86.  
  87.  
  88.         Although great effort has been made to ensure the
  89.         correct running of UnCFS under many circumstances, UnCFS
  90.         is being distributed WITHOUT ANY WARRANTY; without even
  91.         the implied warranty of FITNESS FOR A PARTICULAR
  92.         PURPOSE. 
  93.  
  94.                                  Page 2
  95.  
  96.  
  97. ShareWare:
  98.  
  99.  
  100.  
  101.         UnCFS is copyright material and is being distributed as
  102.         ShareWare.  This is *NOT* free software.  ShareWare is a
  103.         marketing concept - allowing you to `try before you
  104.         buy'. 
  105.  
  106.  
  107.         In order for you to fully evaluate UnCFS before buying
  108.         it, this version of UnCFS is completely unrestricted
  109.         (save for an initial prompt), and includes a full
  110.         documentation.  The files that should have come with
  111.         UnCFS are at least the following (with directory
  112.         structure as shown):
  113.  
  114.  
  115.                 !Install
  116.                         !Boot
  117.                         !Help
  118.                         !Run
  119.                         !RunImage
  120.                         !Sprites
  121.                         CFSUtil
  122.                 !UnCFS
  123.                         !Boot
  124.                         !Help
  125.                         !Run
  126.                         !RunImage
  127.                         !Sprites
  128.                         CAssembler
  129.                         Messages
  130.                                 Default
  131.                         Sprites
  132.                         Templates
  133.                 !UnInstall
  134.                         !Boot
  135.                         !Help
  136.                         !Run
  137.                         !RunImage
  138.                         !Sprites
  139.                         Messages
  140.                                 Default
  141.                         Sprites
  142.                         Templates
  143.                 Documents
  144.                         ASCII
  145.                         !UnCFS_Doc
  146.  
  147.                                  Page 3
  148.  
  149.  
  150.  
  151.         If your copy of UnCFS does not have at least these files
  152.         then you do not have the complete product.  Please write
  153.         to the author if you have any missing files, detailing
  154.         where you obtained the program. 
  155.  
  156.  
  157.         Until you register your copy, you have only been given
  158.         limited rights to use UnCFS, inparticularly:
  159.  
  160.  
  161.         After TWO WEEKS from first using this product, if you
  162.         wish to continue using it you are required to REGISTER. 
  163.         For details of how to register, see below.  Failing to
  164.         register is THEFT. 
  165.  
  166.                                  Page 4
  167.  
  168.  
  169. Registering:
  170.  
  171.  
  172.  
  173.         Single User regsitration of UnCFS entitles you to:
  174.  
  175.  
  176.                 Unlimited personal use of UnCFS
  177.  
  178.                 Technical support (postal)
  179.  
  180.                 A registered copy of UnCFS, and other stuff to
  181.                 fill the disc up
  182.  
  183.                 Free future upgrades (you send a disc and SAE, I'll
  184.                 send you the latest version)
  185.  
  186.  
  187.         The cost of Single User Registration is as indicated in
  188.         the following table.  Note that these prices are correct
  189.         as of November 1992, after Novemember 1993 please
  190.         contact the author for a revised price list. 
  191.  
  192.  
  193.  
  194.                                  |  With Manual  |  Without Manual
  195.          ========================+===============+=================
  196.          Europe                  |  10.00        |  5.00
  197.          Rest of World           |  15.00        |  10.00
  198.  
  199.  
  200.         All prices are in POUNDS STERLING.  How you pay is up to
  201.         you, so long as I end up with the above amount of money
  202.         after bank charges, exchange rates, etc... 
  203.  
  204.  
  205.         Make cheques / postal orders payable to
  206.  
  207.                 Mr Cy J. Booker
  208.                 86 Church View
  209.                 Main Road
  210.                 Crockenhill
  211.                 Swanley
  212.                 Kent.
  213.                 BR8 8JW
  214.                 U.K.
  215.  
  216.  
  217.         Site Licences can be arranged by contacting the author. 
  218.  
  219.  
  220.         For convenience, at the end of this document is a
  221.         print-able form that can be used to register your copy
  222.         of UnCFS. 
  223.  
  224.                                  Page 5
  225.  
  226.  
  227. Why use UnCFS:
  228.  
  229.  
  230.  
  231.         The trouble with the current version of CFS (v1.10) is
  232.         that it just compresses everything you give it -
  233.         including !Boot, !Run and !SpritesNN files.  This has an
  234.         adverse effect on the time an application takes to be
  235.         seen by the filer, and on a directory full of
  236.         applications you are left with an hourglass for some
  237.         considerable time. 
  238.  
  239.  
  240.         The other side-effect of this is that you must be in a
  241.         CFS directory to run the application.  You can not run
  242.         the application from the underlying filing system.  This
  243.         is a real problem if you often have both CFS and the
  244.         underlying FS's directory viewers on the desktop. 
  245.  
  246.  
  247.         UnCFS is designed to dramatically reduce this `waiting'
  248.         time, and allow compressed applications to be run from
  249.         the underlying filing system.  This later feature means
  250.         that you don't need the CFS filer at all - only if you
  251.         add new files to your system. 
  252.  
  253.                                  Page 6
  254.  
  255.  
  256. Typical usage of UnCFS:
  257.  
  258.  
  259.  
  260.         There are two modes of operation of UnCFS once you
  261.         have installed it. 
  262.  
  263.  
  264.         The first mode involves patching applications stored in
  265.         the CFS to use the UnCFS.  A desktop program is provided
  266.         to simplify this (see below). 
  267.  
  268.  
  269.         The second, and the most used mode of operation, is your
  270.         normal desktop environment! This is because, once
  271.         installed UnCFS works behind the scenes with absolutely
  272.         NO user involvement, speeding up your use of CFS. 
  273.  
  274.  
  275.         When you install new software onto your system you just
  276.         need to patch it once, and then continue as normal!
  277.  
  278.                                  Page 7
  279.  
  280.  
  281. Important Preamble:
  282.  
  283.  
  284.  
  285.         For UnCFS to work it has to make alterations to your
  286.         system.  This includes patching the !Cfs.!Run file. 
  287.         Also patches are applied to applications' !Boot and !Run
  288.         files. 
  289.  
  290.  
  291.         Because of this UnCFS is split into three parts:
  292.  
  293.  
  294.         !Install
  295.                 Installs UnCFS for use with CFS.  This must be run
  296.                 before you can use !UnCFS
  297.  
  298.         !UnCFS
  299.                 Desktop program to patch applications for use with UnCFS
  300.  
  301.         !UnInstall
  302.                 Desktop program to un-install UnCFS from the CFS and
  303.                 also un-patch applications.
  304.  
  305.  
  306.         Thus if you decide that UnCFS is not suitable for you,
  307.         it is easy to restore your system back to the state it
  308.         was in beforehand. 
  309.  
  310.                                  Page 8
  311.  
  312.  
  313. Installing UnCFS:
  314.  
  315.  
  316.  
  317.         Installation of UnCFS is easy.  You just run the
  318.         !Install application.  This patches the CFS application
  319.         directory so that the UnCFS support module will always
  320.         be loaded alongside the CFS. 
  321.  
  322.  
  323.         You should NEVER install UnCFS onto your master disc of
  324.         Compression, always use your working CFS application (on
  325.         the hard disc). 
  326.  
  327.  
  328.         Installation need only be done once.  If you use more
  329.         than one copy of the CFS application directory then you
  330.         will need to install each separatly.  This is done by
  331.         repeating for each separate copy of the CFS application:
  332.  
  333.  
  334.                 Run the particular CFS application (!Cfs)
  335.                 Run !Install
  336.  
  337.  
  338. Troubleshooting !Install:
  339.  
  340.  
  341.         You must have the CFS active for the installer to work
  342.         (the CFS application has to have been seen by the
  343.         filer).  This usually isn't a problem as most users
  344.         ensure that the CFS is initialised at boot-up. 
  345.  
  346.  
  347.         The installer must be able to alter the contents of the
  348.         CFS application directory.  It must not reside on a
  349.         read-only drive (or on a write-protected floppy). 
  350.  
  351.  
  352.         You may have LOCKED the !Cfs.!Run file to avoid
  353.         accidental deletion.  This must be undone, using the
  354.         desktop filer menu to change the access of the !Run
  355.         file. 
  356.  
  357.  
  358.         At any time you can quickly test if installation was
  359.         successful - inside the CFS application directory will
  360.         be a new module called CFSUtil. 
  361.  
  362.                                  Page 9
  363.  
  364.  
  365. Patching Applications:
  366.  
  367.  
  368.  
  369.         In order for UnCFS to work, applications stored on the
  370.         CFS must be patched.  This operation need only ever be
  371.         done once.  Thereafter every time that application is
  372.         booted or executed, it will be done that little bit
  373.         faster. 
  374.  
  375.  
  376.         The !UnCFS program is a desktop application that allows
  377.         applications to be quickly and easily patched.  This is
  378.         a multi-document multi-tasking application, and fully
  379.         supports Acorns' interactive help program !Help. 
  380.  
  381.  
  382.         To patch an application simply drag it onto UnCFS's icon
  383.         bar icon.  A status box will pop up informing you of the
  384.         progress and results of patching the application. 
  385.  
  386.  
  387.         Remember not every application can be patched - only
  388.         applications that are stored on the CFS and have not
  389.         already been patched will be eligible. 
  390.  
  391.  
  392.         NOTE: Even if the patch was applied, the effects will
  393.         not be noticable until you next boot the machine.  This
  394.         is because Risc OS has already cached much information
  395.         about the application.  Also, the effects of patching a
  396.         single applications are usually not very apparent. 
  397.  
  398.  
  399.         You can achieve much more by dragging a directory onto
  400.         the UnCFS icon bar icon.  This processes all the
  401.         applications inside that directory, and is a lot simpler
  402.         and faster for processing batches of files. 
  403.  
  404.  
  405.         Remember, you only ever need to patch an application
  406.         once. 
  407.  
  408.  
  409.         You can drag either a CFS, or an underlying filing
  410.         system application or directory to the UnCFS icon
  411.         bar icon - it knows what you mean. 
  412.  
  413.                                 Page 10
  414.  
  415.  
  416. The Choices window:
  417.  
  418.  
  419.     Multitask:
  420.  
  421.  
  422.         By default all patching is done `in the background', so
  423.         you can continue to use your computer while !UnCFS
  424.         patches all the applications it can find.  While an
  425.         operation is in progress you can PAUSE it by either
  426.         clicking on the button, or pressing the ESCAPE key. 
  427.  
  428.  
  429.         If you have a large disc to patch, then you can turn off
  430.         multi-tasking by toggling the appropriate menu item =
  431.         BEFORE starting the operation.  Remember, you can always
  432.         press ESCAPE to pause the non-multi-tasking operation. 
  433.  
  434.  
  435.     Faster:
  436.  
  437.  
  438.         If you wish to speed up things a little bit, you can
  439.         select the FASTER menu item.  This stops all the fields
  440.         of the status window being updated.  There is a menu
  441.         attached to each status window to alter an operation in
  442.         progress. 
  443.  
  444.  
  445.     Small files:
  446.  
  447.  
  448.         With very small files, the compressed version is often
  449.         BIGGER than the original file, which can happen because
  450.         the compressed file contains a fixed size header. 
  451.  
  452.  
  453.         An extra feature to the UnCFS application has been added
  454.         to allow such files to be uncompressed.  This SAVES disc
  455.         space, as well as speeding up the loading of these
  456.         files. 
  457.  
  458.                                 Page 11
  459.  
  460.  
  461.     Delete !Boot:
  462.  
  463.  
  464.         With many applications, the !Boot file does nothing more
  465.         than to perform an "*IconSprites <Obey$Dir>.!Sprites".
  466.         Such !Boot files are degenerate, as this is the default
  467.         action that the Wimp does if it can not find a !Boot
  468.         file.
  469.  
  470.  
  471.         Deleting such degenerate !Boot files dramatically speeds
  472.         up first seeing an application, and so it is recommended
  473.         that this option always be selected.
  474.  
  475.  
  476.         If a !Run file refers to the !Boot file in any active
  477.         line, then the !Boot file is not deleted.
  478.  
  479.  
  480.     Outline Fonts:
  481.  
  482.  
  483.         UnCFS comes with two sets of windows, one with fonts and
  484.         one without.  For low resolution/RISC OS 3.5 users it is
  485.         probably better to use the windows without fonts.
  486.  
  487.         For historical reasons changes to this switch do not take
  488.         effect immediately, instead you must closedown and restart
  489.         the application.
  490.  
  491.  
  492.     Save Choices:
  493.  
  494.  
  495.         When the UnCFS application next starts up you can tell
  496.         it to use your current settings by using this button.
  497.  
  498.                                 Page 12
  499.  
  500.  
  501. Troubleshooting !UnCFS:
  502.  
  503.  
  504.         Because the UnCFS needs to patch applications, it must
  505.         be able to write to it, and so the application can not
  506.         reside on a read-only filing system. 
  507.  
  508.  
  509.         If a file has been set to `no user read access' then
  510.         !UnCFS will complain, and you must alter the files'
  511.         access privileges. 
  512.  
  513.  
  514.         Similarly, if a file has been LOCKED, or not have
  515.         sufficient access privileges then !UnCFS will not be
  516.         able to alter it. 
  517.  
  518.  
  519.         In all the above cases an ERROR is generated.  This
  520.         cause the operation to be paused, and the status window
  521.         now shows you which file was in error, and what that
  522.         error was.  From this state you can either:
  523.  
  524.                 ABORT:  Completely abort the operation
  525.  
  526.                 SKIP:  Skip this file - it will remain unpatched
  527.  
  528.                 RETRY:  Try and patch this file again
  529.  
  530.  
  531.         By clicking SELECT on the file name in the status
  532.         window, the directory containing the offending file will
  533.         be opened.  Thus you could quickly, say, unlock the file
  534.         and retry the operation. 
  535.  
  536.  
  537.         If you wish to manually edit any patched !Run or !Boot
  538.         files at a later date, please note that the un-patch
  539.         program assumes the patches are at the very front of the
  540.         file.  If you make any changes please put them AFTER the
  541.         first line. 
  542.  
  543.                                 Page 13
  544.  
  545.  
  546. Un-installing UnCFS:
  547.  
  548.  
  549.  
  550.         If you wish to remove UnCFS from your system, the
  551.         !UnInstall application is provided. 
  552.  
  553.  
  554.         When run it initially un-patches the CFS application
  555.         directory, and then behaves much like the UnCFS
  556.         application (see above) only instead of patching, it
  557.         removes the patches.  You can always tell you are
  558.         un-patching an application, as the status window for
  559.         un-patching is bright red. 
  560.  
  561.  
  562.         UnInstall only alters applications that have been
  563.         patched, so there is no harm in giving UnInstall an
  564.         original application - nothing will be changed. 
  565.  
  566.  
  567.         For that reason, to ensure that UnCFS is completely
  568.         removed from your system you could apply the
  569.         following three steps to all discs that may have
  570.         applications that you have patched using UnCFS:
  571.  
  572.  
  573.                 1.  Go to the root directory of the disc
  574.                 2.  Select All
  575.                 3.  Drag the selection to the UnInstall icon bar icon
  576.  
  577.  
  578. Troubleshooting !UnInstall:
  579.  
  580.  
  581.         See the troubleshooting section of both the Install
  582.         and the UnCFS sections of the manual, as both of
  583.         these apply. 
  584.  
  585.                                 Page 14
  586.  
  587.  
  588. How UnCFS works:
  589.  
  590.  
  591.         You don't need to know how UnCFS works to benefit
  592.         from the speed up its use gives you, but if you want
  593.         to know then here are the details. 
  594.  
  595.  
  596.         When the desktop first `sees' an appliation it loads
  597.         some files inside an application, including the
  598.         !Boot, !Sprites, and possibly a !SpritesNN file.  If
  599.         these files are compressed then there is a
  600.         noticeable delay while CFS decompresses each file -
  601.         particularly if the CFS temporary directory is
  602.         located on a highly fragmented hard disc. 
  603.  
  604.  
  605.         Usually these files are small anyway, and
  606.         compressing it didn't save any disc space - on the
  607.         contrary the compressed !Boot file is usually BIGGER
  608.         than the uncompressed version!
  609.  
  610.  
  611.         If you are in the habit of having both CFS and the
  612.         underlying FS filer windows open you can only run an
  613.         application from the CFS.  This is very annoying as
  614.         there is no quick way `promote' the filer window to
  615.         a CFS window.  The reason you can't run the
  616.         application is because its' !Run file has been
  617.         compressed. 
  618.  
  619.  
  620.         Put simply UnCFS will uncompress an applications'
  621.         !Boot, !Run, !Sprites and !SpritesNN files.  However
  622.         there is slighlty more to it than that. 
  623.  
  624.  
  625. Technical Details:
  626.  
  627.  
  628.         If you just uncompress an applications' !Boot and
  629.         !Run file you can still run it from the CFS but not
  630.         from the underlying filing system - the rest of the
  631.         application is still compressed. 
  632.  
  633.  
  634.         UnCFS allows the !Run file to execute a compressed
  635.         application by patching it to think that the rest of
  636.         the application is infact stored on the CFS!
  637.  
  638.  
  639.         In order to understand how it can do this, you must
  640.         know about a system variable that goes by the name
  641.         of `Obey$Dir'. 
  642.  
  643.                                 Page 15
  644.  
  645.  
  646.  
  647.         When an Obey file (such as !Boot and !Run files) are
  648.         executed (which happens when you boot/run an
  649.         application), the system variable `Obey$Dir' is set
  650.         to the directory that is being executed.  This
  651.         simple but powerful feature allows applications to
  652.         easily reside anywhere on a disc. 
  653.  
  654.  
  655.         However, if you run a compressed application from
  656.         the underlying filing system, the value of
  657.         `Obey$Dir' is of no use, because it points to the
  658.         compressed directory and not the CFS directory. 
  659.  
  660.  
  661.         What UnCFS does is to ensure that the system
  662.         variable `Obey$Dir' always points to the
  663.         corresponding CFS directory.  This is done by
  664.         inserting the following line to the front of both
  665.         the !Boot and !Run files:
  666.  
  667.                         ForceCFS
  668.  
  669.         which simply coerces the current value of the system
  670.         variable `Obey$Dir' to point to a CFS directory. 
  671.  
  672.  
  673.         The code to perform this `ForceCFS' is stored in a
  674.         module that the installer ensures is always loaded
  675.         alongside the CFS itself.  (A module was used is
  676.         because the script language is not powerful enough
  677.         to handle the general case). 
  678.  
  679.  
  680.         This is exactly what happens when an application is
  681.         patched
  682.  
  683.  
  684.                 If a !Boot file exists, and is an Obey file, and is
  685.                 stored under the CFS then copy to the underlying FS,
  686.                 prepending the line:
  687.                         ForceCFS
  688.  
  689.                 If a !Run file exists, and is an Obey file, and is
  690.                 stored under the CFS then copy to the underlying FS,
  691.                 prepending the line:
  692.                         ForceCFS
  693.  
  694.                 If a !Sprites[2-3][2-3] file exists, is a Sprite
  695.                 file, and is stored under the CFS then copy to the
  696.                 underlying FS.
  697.  
  698.                                 Page 16
  699.  
  700.  
  701. Registration Form:
  702.  
  703.  
  704.  
  705.         I would like to register as a Single User of v1.20 UnCFS and
  706.         
  707.         have enclosed __________.
  708.         
  709.         This DOES / NOT (delete as applicable) include a manual.
  710.         
  711.         As a registered user I will receive a registered version of
  712.         
  713.         UnCFS and have access to technical support.
  714.  
  715.  
  716.         Title:          ________
  717.         
  718.         Name:           ____________________________
  719.         
  720.         Address:        ________________________________
  721.         
  722.                         ________________________________
  723.         
  724.                         ________________________________
  725.         
  726.                         ________________________________
  727.         
  728.                         ________________________________
  729.         
  730.         Postcode:       _______________
  731.         
  732.         Country:        _______________
  733.         
  734.         I obtained
  735.         UnCFS from:     ____________________________
  736.         
  737.         Machine:        ___________________________________
  738.  
  739.                         ___________________________________
  740.  
  741.         Possible
  742.         improvements:   ___________________________________
  743.         
  744.                         ___________________________________
  745.         
  746.         Make cheques / postal orders payable to: Mr CY J. BOOKER
  747.         
  748.  
  749.                         86 Church View,  Main Road,
  750.                         Crockenhill,
  751.                         Swanley,
  752.                         Kent.
  753.                         BR8 8JW.
  754.                         U.K.
  755.  
  756.