aboutsummaryrefslogtreecommitdiffstats
path: root/bie.1.in
blob: 3dc9eef77f0e1d106816c54ee72ca112cbc90ad4 (plain)
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
.\" Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
.\" SPDX-License-Identifier: MIT
.TH "BIE" "1" "2018-03-27" "bie VERSION" "bie Manual"

.SH "NAME"
bie \- a tool for generating an indexed flat archive

.SH "SYNOPSIS"
.B bie
.RB [ -hv ]
.RB [ -- ]
.I output index input...

.SH "DESCRIPTION"
.I output
is the destination of the flat archive.
.I index
is the destination of the index file.
.I input
is the list of files to archive.
.P
The output is a concatenation of the contents of all the input files
with each file aligned to as 16 byte boundary. The format of the index
file is a list of macro calls to BIE_ENTRY with the parameters being
the name, the offset and the size of each input file.
.P
An appropriate definition of BIE_ENTRY should be provided to make use
of this information.
.P
The name of each input file will be slugified to remove any characters
which are not valid inside a C identifier (leading digits are
removed). The slugification process leaves alphanumeric characters
alone, replaces punctuation and spaces with underscores and removes
any other characters. Any resulting leading underscores are dropped.
.P
.B bie
does not attempt to fix name collisions.

.SH "OPTIONS"
.B -h
.RS
Show help.
.RE

.B -v
.RS
Show version and license information.
.RE

.SH "EXAMPLES"
bie assets.bie assets.idx a b c
.RS
This will instruct
.B bie
to read the contents of the files named a, b and c and to generate an
assets.bie which is a concatenation of the aligned file contents of a,
b and c and to generate an assets.idx which might look like this:

.nf
BIE_ENTRY(a, 0, 10)
BIE_ENTRY(b, 16, 30)
BIE_ENTRY(c, 48, 100)
.fi
.RE

.SH "SEE ALSO"
.BR ld (1),
.BR zlib-flate (1)
.SH AUTHOR
Tomasz Kramkowski <tk@the-tk.com>