ObjFW  Check-in [147ee732fc]

Overview
Comment:Add manpage for ofarc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 147ee732fc5d95cb2807914757b5d8c4f391c9cd0b4d0b08f6f314eea33bd772
User & Date: js on 2024-09-01 12:31:10
Other Links: manifest | tags
Context
2024-09-01
12:34
Improve style of manpages check-in: 13c3ebee9c user: js tags: trunk
12:31
Add manpage for ofarc check-in: 147ee732fc user: js tags: trunk
09:24
Add manpage for objfw-new check-in: 5ccfd65db4 user: js tags: trunk
Changes

Modified utils/ofarc/Makefile from [c3efee1ee5] to [5c95dc17f9].

1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
include ../../extra.mk

PROG = ofarc${PROG_SUFFIX}
SRCS = GZIPArchive.m	\
       LHAArchive.m	\
       OFArc.m		\
       TarArchive.m	\
       ZIPArchive.m	\
       ZooArchive.m
DATA = localization/de.json		\
       localization/localizations.json


include ../../buildsys.mk

PACKAGE_NAME = ofarc

${PROG}: ${LIBOBJFW_DEP_LVL2} ${LIBOBJFWRT_DEP_LVL2}












>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include ../../extra.mk

PROG = ofarc${PROG_SUFFIX}
SRCS = GZIPArchive.m	\
       LHAArchive.m	\
       OFArc.m		\
       TarArchive.m	\
       ZIPArchive.m	\
       ZooArchive.m
DATA = localization/de.json		\
       localization/localizations.json
MAN = ofarc.1

include ../../buildsys.mk

PACKAGE_NAME = ofarc

${PROG}: ${LIBOBJFW_DEP_LVL2} ${LIBOBJFWRT_DEP_LVL2}

Added utils/ofarc/ofarc.1 version [8495cdfd68].



















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
.\"
.\" Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
.\"
.\" All rights reserved.
.\"
.\" This program is free software: you can redistribute it and/or modify it
.\" under the terms of the GNU Lesser General Public License version 3.0 only,
.\" as published by the Free Software Foundation.
.\"
.\" This program is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
.\" version 3.0 for more details.
.\"
.\" You should have received a copy of the GNU Lesser General Public License
.\" version 3.0 along with this program. If not, see
.\" <https://www.gnu.org/licenses/>.
.\"
.TH OFARC 1
.SH NAME
ofarc - list, extract, create and append to archives
.SH SYNOPSIS
.B ofarc
[\fBoptions\fR] \fIarchive\fR [\fIfile1\fR \fIfile2\fR ...]
.SH DESCRIPTION
.B ofarc
is a program to list, extract, create and append to archives.
.SH OPTIONS
.TP
.BR \fB\-a\fR ", " \fB\-\-append\fR
Append to archive.
.TP
.BR \fB\-\-archive\-comment=\fIcomment\fR
Archive comment to use when creating or appending.
.TP
.BR \fB\-c\fR ", " \fB\-\-create\fR
Create archive.
.TP
.BR \fB\-C\fR " " \fIdirectory\fR ", " \fB\-\-directory=\fIdirectory\fR
Extract into the specified directory.
.TP
.BR \fB\-E\fR " " \fIencoding\fR ", " \fB\-\-encoding=\fIencoding\fR
The encoding used by the archive (only tar, lha and zoo files).
.TP
.BR \fB\-f\fR ", " \fB\-\-force\fR
Force / overwrite files.
.TP
.BR \fB\-h\fR ", " \fB\-\-help\fR
Show the help.
.TP
.BR \fB\-\-iri\fR
Use an IRI to access the archive.
.TP
.BR \fB\-l\fR ", " \fB\-\-list\fR
List all files in the archive.
.TP
.BR \fB\-n\fR ", " \fB\-\-no\-clobber\fR
Never overwrite files.
.TP
.BR \fB\-p\fR ", " \fB\-\-print\fR
Print one or more files from the archive.
.TP
.BR \fB\-q\fR ", " \fB\-\-quiet\fR
Quiet mode (no outputu, except errors).
.TP
.BR \fB\-t\fR " " \fItype\fR ", " \fB\-\-type=\fItype\fR
Archive type (gz, lha, tar, tgz, zip, zoo).
.TP
.BR \fB\-v\fR ", " \fB\-\-verbose\fR
Verbose output for file list.
.TP
.BR \fB\-x\fR ", " \fB\-\-extract\fR
Extract files.
.SH EXAMPLES
Extract all files in an archive:
.PP
	ofarc -x archive.tar.gz
.PP
Create a new archive with the directory \fBfoo\fR and all its files:
.PP
	ofarc -c foo.zip foo
.PP
List all files in an archive without downloading it:
.PP
	ofarc --iri -l https://example.com/archive.lha
.PP
Print file \fBREADME\fR in \fBarchive.tar.gz\fR:
.PP
	ofarc -p archive.tar.gz README