summaryrefslogtreecommitdiffstats
path: root/development/dfsimage/man_page.diff
blob: 590fc240f4ac77895124615ec23fce754c1da44b (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
diff -Naur dfsimage/readme.rst dfsimage.patched/readme.rst
--- dfsimage/readme.rst	2023-05-04 17:38:19.198961496 -0400
+++ dfsimage.patched/readme.rst	2023-05-06 01:58:17.771007300 -0400
@@ -1,33 +1,21 @@
+.. |version| replace:: 0.9rc3_20210220_de24cf0
+.. |date| date::
+
 ========
 dfsimage
 ========
 
-**BBC Micro Acorn DFS floppy disk image maintenance utility**
-
-This package contains a command-line utility and a Python module dedicated for
-maintenance of **BBC Micro** disk image files. Those files usually have extensions
-*.ssd* - for single sided disk image, or *.dsd* - for double sided disk image.
-
-This package allows indexing contents of the disk images, importing files to and
-exporting from the disk images, modifying disk images in place, such as
-renaming files or changing disk title and transferring data between disk images.
+---------------------------------------------------------
+BBC Micro Acorn DFS floppy disk image maintenance utility
+---------------------------------------------------------
+
+:Manual section: 1
+:Manual group: SlackBuilds.org
+:Date: |date|
+:Version: |version|
 
-The ``dfsimage`` module also supports *MMB* files. *MMB* files are containers for
-large number of *.ssd* disk images, designed for storing disk images on a
-MMC or SD card. All commands that work with *.ssd* FILES can be also used on a disk
-image contained within an MMB file. Index of a disk image within an MMB file can be
-either specified using `index`__ option, or appended to the MMB file name, following
-a colon character, e.g. ``beeb.mmb:12``. Commands |list|_, |dump|_ and |digest|_ can
-take a range of disk images, e.g. ``beeb.mmb:10-20`` or an entire *MMB* file. In that
-case command will be applied to all *initialized* disk image in the specified range.
-
-There are few commands intended specially for MMB files, such as |donboot|_ or
-|drecat|_.
-
-__ index-opt_
-
-usage
-=====
+SYNOPSIS
+========
 
 .. code-block:: shell-session
 
@@ -36,121 +24,31 @@
   dfsimage --help-options
   dfsimage --help-format
 
-**examples**:
-
-Index all floppy images with contents from the 'images' directory to 'index.json' file
-
-.. code-block:: shell-session
-
-  dfsimage index -f json images/*.ssd images/*.dsd > index.json
-
-Covert a linear double sided image to a '.dsd' file
-
-.. code-block:: shell-session
-
-  dfsimage convert --from -D -L linear.img --to inter.dsd
-
-Import all files from the 'files' directory to a new image 'games.ssd'
-
-.. code-block:: shell-session
-
-  dfsimage import --new games.ssd --title="GAMES" files/*
-
-Export all files from the disk image at index 12 in 'beeb.mmb' file to the 'files' directory
-
-.. code-block:: shell-session
-
-  dfsimage export beeb.mmb:12 -o files/
+DESCRIPTION
+===========
 
-Index all floppy image contents from the 'images' directory to text table file
-
-.. code-block:: shell-session
-
-  dfsimage index --only-files -f table images/*.ssd images/*.dsd > files.csv
-
-installation
-============
-
-At this point the package is not yet available in the PyPI repository, so 
-it has to be build and installed manually:
-
-Linux
------
-
-Make sure that pip and dependencies are installed.
-If you are running Debian, Ubuntu or derived Linux distribution,
-install the python3-pip package like this.
-
-.. code-block:: shell-session
-
-  ~$ sudo apt-get install python3-pip
-
-Upgrade pip to latest version.
-
-.. code-block:: shell-session
-
-  ~$ python -m pip install --upgrade pip
-
-Clone the repository
-
-.. code-block:: shell-session
+**dfsimage** is a command-line utility and a Python module dedicated for
+maintenance of **BBC Micro** disk image files. These files usually have extensions
+*.ssd* for a single sided disk image, or *.dsd* for a double sided disk image.
 
-  ~/src$ git clone https://github.com/monkeyman79/dfsimage.git
-  ~/src$ cd dfsimage
-
-Build and install package
-
-.. code-block:: shell-session
-
-  ~/src/dfsimage$ python -m pip install .
-
-Windows
--------
-
-Before installing this package on a Windows machine, make sure that
-both Python and Git are installed on your system.
-
-* Python can be downloaded from here: https://www.python.org/downloads/
-* Git for Windows can be downloaded from here: https://gitforwindows.org/
-
-Make sure to add both Python and Git to your PATH when asked by the installer.
-
-Execute steps below in either Command Prompt or Windows PowerShell.
-
-.. code-block:: ps1con
-
-  PS C:\Users\you> mkdir Documents\src
-  PS C:\Users\you> cd Documents\src
-  PS C:\Users\you\Documents\src> git clone "https://github.com/monkeyman79/dfsimage.git"
-  PS C:\Users\you\Documents\src> cd dfsimage
-  PS C:\Users\you\Documents\src\dfsimage> python -m pip install --user .
-
-During installation, you may see the following warning message:
-
-  **WARNING**: The script dfsimage.exe is installed in ``'C:\Users\you\AppData\Local\Packages\...\Scripts'``
-  which is not on PATH.
-
-  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
-
-This means that the ``'dfsimage'`` command will not be directly available. There are two options here:
-
-* Always execute dfsimage via ``python -m dfsimage COMMAND...``
-* Add the Scripts directory to your PATH variable
-
-**Adding Scripts directory to your PATH variable**
-
-We can combine powers of Python and PowerShell to automatically add your local
-Scripts directory to PATH.
-Execute the steps below in the Windows PowerShell:
+**dfsimage** allows indexing contents of the disk images, importing files to and
+exporting from the disk images, modifying disk images in place, such as
+renaming files or changing disk title, and transferring data between disk images.
 
-.. code-block:: ps1con
+The ``dfsimage`` module also supports *MMB* files. *MMB* files are containers for
+large number of *.ssd* disk images, designed for storing disk images on a
+MMC or SD card. All commands that work with *.ssd* FILES can be also used on a disk
+image contained within an MMB file. Index of a disk image within an MMB file can be
+either specified using the `index` option, or appended to the MMB file name, following
+a colon character, e.g. beeb.mmb:12. Commands **list**, **dump** and **digest** can
+take a range of disk images, e.g. beeb.mmb:10-20 or an entire *MMB* file. In that
+case the command will be applied to all *initialized* disk image in the specified range.
 
-  PS C:\Users\you> $USER_SITE = python -m site --user-site
-  PS C:\Users\you> $USER_SCRIPTS = (Get-ChildItem (Split-Path -Path $USER_SITE -Parent) Scripts).FullName
-  PS C:\Users\you> [Environment]::SetEnvironmentVariable("PATH",
-  >> [Environment]::GetEnvironmentVariable("PATH", "User") + ";$USER_SCRIPTS", "User")
+There are few commands intended specially for MMB files, such as **donboot** or
+**drecat**.
 
-Now close your console window and open it again to make the change take effect.
+OPTIONS
+=======
 
 command list
 ============
@@ -1123,6 +1021,39 @@
 * ``mmb_status_byte``      - Raw MMB status byte value in the MMB catalog.
 * ``sha1``                 - SHA1 digest of the entire disk image file.
 
+EXAMPLES
+========
+
+Index all floppy images with contents from the 'images' directory to 'index.json' file
+
+.. code-block:: shell-session
+
+  dfsimage index -f json images/*.ssd images/*.dsd > index.json
+
+Covert a linear double sided image to a '.dsd' file
+
+.. code-block:: shell-session
+
+  dfsimage convert --from -D -L linear.img --to inter.dsd
+
+Import all files from the 'files' directory to a new image 'games.ssd'
+
+.. code-block:: shell-session
+
+  dfsimage import --new games.ssd --title="GAMES" files/*
+
+Export all files from the disk image at index 12 in 'beeb.mmb' file to the 'files' directory
+
+.. code-block:: shell-session
+
+  dfsimage export beeb.mmb:12 -o files/
+
+Index all floppy image contents from the 'images' directory to text table file
+
+.. code-block:: shell-session
+
+  dfsimage index --only-files -f table images/*.ssd images/*.dsd > files.csv
+
 development status
 ==================