home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / c / cfsutils / Documents / !UnCFS_Doc / ASCII < prev   
Encoding:
Text File  |  1992-11-09  |  20.9 KB  |  716 lines

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