Readme update.

This commit is contained in:
2023-10-18 16:43:32 +02:00
parent c78dbacd0e
commit cb5b03aa20

View File

@@ -18,64 +18,50 @@ In case of corrupted or no-dos images, message will be shown.
Requirements
------------
It requires ``unadf`` utility from `ADFlib <https://github.com/lclevy/ADFlib>`_
repository.
This script is using ``unadf`` v1.2 utility from `ADFlib
<https://github.com/lclevy/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
<http://http.debian.net/debian/pool/main/u/unadf/unadf_0.7.11a.orig.tar.gz>`_
and `patches
<http://http.debian.net/debian/pool/main/u/unadf/unadf_0.7.11a-3.debian.tar.gz>`_
from `Debian repository <http://packages.debian.org/sid/unadf>`_.
#. Extract ``unadf_0.7.11a-3.debian.tar.gz`` and ``unadf_0.7.11a.orig.tar.gz``
into some temporary directory::
#. Grab the `sources <https://github.com/lclevy/ADFlib>`_
#. Build and install it, using instructions from `INSTALL
<https://github.com/lclevy/ADFlib/blob/master/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 <http://zakalwe.fi/~shd/foss/xdms/>`_ utility is
needed.
For optional dms support, `xdms <http://zakalwe.fi/~shd/foss/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; rm ${t}
Open=%cd %p/uadf://
[dms]
Regex=\.dms$
View=%view{ascii} t=$(mktemp --suffix .adf); xdms u %f "+${t}" 2>/dev/null; unadf -lrm ${t} 2</dev/null; rm ${t}
Open=%cd %p/uadf://
# dms
regex/\.([dD][mM][sS])$
Open=%cd %p/uadf://
License
=======