diff --git a/README.rst b/README.rst index c36da5f..74bca5a 100644 --- a/README.rst +++ b/README.rst @@ -18,64 +18,50 @@ In case of corrupted or no-dos images, message will be shown. Requirements ------------ -It requires ``unadf`` utility from `ADFlib `_ -repository. +This script is using ``unadf`` v1.2 utility from `ADFlib +`_ package in version 0.8. Version of unadf +can be check by simply issuing unadf without arguments: -If it turns out that your distribution doesn't provide proper version of ADFlib, -there will be a need for building it by hand. +.. code:: shell-session + + $ unadf + +If it turns out that your distribution doesn't provide proper version of +ADFlib, there will be a need for building it by hand. It may be done by using following steps: -#. Grab the `sources - `_ - and `patches - `_ - from `Debian repository `_. -#. Extract ``unadf_0.7.11a-3.debian.tar.gz`` and ``unadf_0.7.11a.orig.tar.gz`` - into some temporary directory:: +#. Grab the `sources `_ +#. Build and install it, using instructions from `INSTALL + `_ file. - $ mkdir temp - $ cd temp - $ tar zxf ~/Downloads/unadf_0.7.11a-3.debian.tar.gz - $ tar zxf ~/Downloads/unadf_0.7.11a.orig.tar.gz - $ cd unadf-0.7.11a - -#. Apply Debian patches:: - - $ for i in `cat ../debian/patches/series`; do - > patch -Np1 < "../debian/patches/${i}" - > done - -#. Apply the patch from extras directory:: - - $ patch -Np1 < [path_to_this_repo]/extras/unadf_separate_comment.patch - $ make - $ cp Demo/unadf [destination_path] - -#. Place ``unadf`` binary under directory reachable by ``$PATH``. - -For optional dms support, `xdms `_ utility is -needed. +For optional dms support, `xdms `_ utility +is needed. Installation ------------ * install `extfslib`_ * copy ``uadf`` to ``~/.local/share/mc/extfs.d/`` -* add or change entry for files handle in ``~/.config/mc/mc.ext``:: +* add or change entry for files handle in ``~/.config/mc/mc.ext.ini``: - # adf - type/^Amiga\ .* disk - Open=%cd %p/uadf:// - View=%view{ascii} unadf -lr %f +.. code:: ini - # adz - regex/\.([aA][dD][zZ])$ - Open=%cd %p/uadf:// + [adf] + Type=^Amiga\ .* disk + Open=%cd %p/uadf:// + View=%view{ascii} unadf -lrm %f 2>/dev/null + + [adz] + Regex=\.adz$ + View=%view{ascii} t=$(mktemp --suffix .adf); zcat %f > ${t}; unadf -lrm ${t} 2/dev/null; unadf -lrm ${t} 2