Permalink
Browse files

New recipe, package bbe

  • Loading branch information...
bkauler committed Oct 30, 2017
1 parent 3f2f8a3 commit fc72d0a867b14d27702aba6495c4eb7853357dc8
@@ -0,0 +1,15 @@
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
SRC_URI = "https://downloads.sourceforge.net/project/bbe-/bbe/${PV}/bbe-${PV}.tar.gz \
file://bbe-10-manpage.patch \
file://bbe-20-html.patch"
SRC_URI[md5sum] = "b056d0bfd852384aced73d4533887d4b"
SRC_URI[sha256sum] = "baaeaf5775a6d9bceb594ea100c8f45a677a0a7d07529fa573ba0842226edddb"
inherit autotools pkgconfig
HOMEPAGE = "https://sourceforge.net/projects/bbe-/"
SUMMARY = "bbe is a sed-like editor for binary files"
@@ -0,0 +1,139 @@
From: A. Costa <agcosta@gis.net>
Subject: Correct typos
---
doc/bbe.1 | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
--- a/doc/bbe.1
+++ b/doc/bbe.1
@@ -44,7 +44,7 @@
Add the COMMAND to the commands to be executed.
.TP
.BR \-f ", " \-\-file=\fIscript\-file\fP
-Add the contest of script\-file to commands.
+Add the contents of script\-file to commands.
.TP
.BR \-o ", " \-\-output=\fIname\fP
Write output to \fIname\fP instead of standard output.
@@ -71,10 +71,10 @@
String \fIstart\fP starts \fIM\fR bytes long block.
.TP
/start/:/stop/
-String \fIstart\fP starts the block and block ends to string \fIstop\fR.
+String \fIstart\fP starts the block and block ends at string \fIstop\fR.
.TP
/start/:
-String \fIstart\fR starts the block and block will end at next occurence of \fIstart\fR. Only the first \fIstart\fR is included to the block.
+String \fIstart\fR starts the block and block will end at next occurrence of \fIstart\fR. Only the first \fIstart\fR is included to the block.
.TP
:/stop/
Block starts at the beginning of input stream (or at the end of previous block) and ends at the next occurrence of \fIstop\fR. String \fIstop\fR will be included to the block.
@@ -83,7 +83,7 @@
.PP
Default value for block is 0:$, meaning the whole input stream.
.PP
-Both \fIstart\fR and \fIstop\fR strings are included to block. Nonprintable characters can be escaped as
+Both \fIstart\fR and \fIstop\fR strings are included in block. Nonprintable characters can be escaped as
.TP
\ennn
decimal
@@ -96,9 +96,9 @@
.PP
Character '\e' can be escaped as '\e\e'. Escape codes '\ea','\eb','\et','\en','\ev','\ef','\er' and '\e;' can also be used.
.PP
-Length (\fIN\fR and \fIM\fR) can be defined as decimal (n), hexadecimal (xn) or octal (0n) value.
+Length (\fIN\fR and \fIM\fR) can be defined as a decimal (n), a hexadecimal (xn) or an octal (0n) value.
.SH "COMMAND SYNOPSIS"
-\fBbbe\fR has two type of commands: block and byte commands, both are allways related to current block. That means that the input stream outside of block remains untouched.
+\fBbbe\fR has two type of commands: block and byte commands, both are always related to current block. That means that the input stream outside of the blocks remains untouched.
.SS Block commands
.TP
D [\fIn\fR]
@@ -111,7 +111,7 @@
Append the string \fIstring\fR at the end of block.
.TP
J \fIn\fR
-Skip \fIn\fR blocks before executing commands after this command.
+Skip \fIn\fR blocks, before executing commands after this command.
.TP
L \fIn\fR
Leave all blocks unmodified starting from block number \fIn\fR. Affects only commands after this command.
@@ -120,7 +120,7 @@
Before printing a block, the file name in which the block starts is printed.
.TP
F \fIf\fR
-Before printing a block, the input stream offset at the begining of the block is printed.
+Before printing a block, the input stream offset at the beginning of the block is printed.
\fIf\fR can be H, D or O for Hexadecimal, Decimal or Octal format of offset.
.TP
B \fIf\fR
@@ -128,12 +128,12 @@
\fIf\fR can be H, D or O for Hexadecimal, Decimal or Octal format of block number.
.TP
> \fIfile\fR
-Before printing a block, the contents of file \fIfile\fR is printed.
+Before printing a block, the contents of file \fIfile\fR are printed.
.TP
< \fIfile\fR
-After printing a block, the contents of file \fIfile\fR is printed.
+After printing a block, the contents of file \fIfile\fR are printed.
.SS Byte commands
-\fIn\fR in byte commands is offset from the beginning of current block (starts from zero).
+\fIn\fR in byte commands is the offset from the beginning of current block (starts from zero).
.TP
r \fIn\fR \fIstring\fR
Replace bytes starting at position \fIn\fR with string \fIstring\fR.
@@ -143,13 +143,13 @@
.TP
p \fIformat\fR
The contents of block is printed in format defined by \fIformat\fR. \fIformat\fR
-can have any of the formats H, D, O, A and B for Hexadecimal, Decimal, Octal, Asciii and Binary.
+can have any of the formats H, D, O, A and B for Hexadecimal, Decimal, Octal, Ascii and Binary.
.TP
s/\fIsearch\fR/\fIreplace\fR/
Replace all occurrences of \fIsearch\fR with \fIreplace\fR.
.TP
y/\fIsource\fR/\fIdest\fR/
-Translate bytes in \fIsource\fR to the corresponding bytes in \fIdest\fR. \fISource\fR and \fIdest\fR must have equal length.
+Translate bytes in \fIsource\fR to the corresponding bytes in \fIdest\fR. \fISource\fR and \fIdest\fR must be the same length.
.TP
d \fIn\fR \fIm\fR|*
Delete \fIm\fR bytes starting from the offset \fIn\fR. If * is defined instead of \fIm\fR, then all bytes starting from \fIn\fR are deleted.
@@ -170,17 +170,17 @@
Commands after the l\-command are ignored from \fIn\fR'th byte of the block.
.TP
w \fIfile\fR
-Write bytes from the current block to file \fIfile\fR. Commands before w\-command have effect to what will be written. %B or %nB in \fIfile\fR will be replaced by current block number. n in %nB is field length,
+Write bytes from the current block to file \fIfile\fR. Commands before w\-command have what will be written. %B or %nB in \fIfile\fR will be replaced by current block number. n in %nB is field length,
leading zero in n causes the block number to be left padded with zeroes.
.TP
& \fIc\fR
-Performs binary and with \fIc\fR.
+Performs binary \fBand\fR with \fIc\fR.
.TP
| \fIc\fR
-Performs binary or with \fIc\fR.
+Performs binary \fBor\fR with \fIc\fR.
.TP
^ \fIc\fR
-Performs binary xor with \fIc\fR.
+Performs binary \fBxor\fR with \fIc\fR.
.TP
~
Performs binary negation.
@@ -201,7 +201,7 @@
.SH "EXAMPLES"
.TP
bbe \-e "s/c:\e\etemp\e\edata1.txt/c:\e\etemp\e\edata2.txt/" file1
-all occurences of "c:\etemp\edata1.txt" in file file1 are changed to "c:\etemp\edata2.txt"
+all occurrences of "c:\etemp\edata1.txt" in file file1 are changed to "c:\etemp\edata2.txt"
.TP
bbe \-b 0420:16 \-e "r 4 \ex12\ex4a" file1
Two bytes starting at fifth byte of a 16 byte long block starting at offset 0420 (octal) in file1 are changed to hexadecimal values 12 and 4a.
@@ -213,4 +213,4 @@
.BR sed (1).
.SH "AUTHOR"
-Timo Savinen <tjsa@iki.fi>
+Timo Savinen <tjsa@iki.fi >
Oops, something went wrong.

0 comments on commit fc72d0a

Please sign in to comment.