Readme update.
This commit is contained in:
68
README.rst
68
README.rst
@@ -18,65 +18,51 @@ 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
|
||||
.. code:: ini
|
||||
|
||||
[adf]
|
||||
Type=^Amiga\ .* disk
|
||||
Open=%cd %p/uadf://
|
||||
View=%view{ascii} unadf -lr %f
|
||||
View=%view{ascii} unadf -lrm %f 2>/dev/null
|
||||
|
||||
# adz
|
||||
regex/\.([aA][dD][zZ])$
|
||||
[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/\.([dD][mM][sS])$
|
||||
[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://
|
||||
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
|
||||
Reference in New Issue
Block a user