Add b64decode & b64encode as synonyms for uudecode and uuencode -m,
respectively, for convenience when encoding or decoding base64 files. As requested by various users.
This commit is contained in:
parent
95431d3d42
commit
09bf07df21
@ -3,6 +3,7 @@
|
||||
|
||||
PROG= uudecode
|
||||
WARNS?= 4
|
||||
LINKS= ${BINDIR}/uudecode ${BINDIR}/b64decode
|
||||
NOMAN= noman
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -4,7 +4,10 @@
|
||||
PROG= uuencode
|
||||
WARNS?= 4
|
||||
MAN= uuencode.1 uuencode.format.5
|
||||
LINKS= ${BINDIR}/uuencode ${BINDIR}/b64encode
|
||||
MLINKS= uuencode.1 uudecode.1 \
|
||||
uuencode.format.5 uuencode.5
|
||||
uuencode.format.5 uuencode.5 \
|
||||
uuencode.1 b64encode.1 \
|
||||
b64decode.1 b64encode.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -37,7 +37,9 @@
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm uuencode ,
|
||||
.Nm uudecode
|
||||
.Nm uudecode ,
|
||||
.Nm b64encode ,
|
||||
.Nm b64decode
|
||||
.Nd encode/decode a binary file
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
@ -51,6 +53,13 @@
|
||||
.Nm uudecode
|
||||
.Op Fl i
|
||||
.Fl o Ar output_file
|
||||
.Nm b64encode
|
||||
.Op Fl o Ar output_file
|
||||
.Op Ar file
|
||||
.Ar name
|
||||
.Nm b64decode
|
||||
.Op Fl i
|
||||
.Fl o Ar output_file
|
||||
.Op Ar file
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
@ -61,6 +70,17 @@ utilities are used to transmit binary files over transmission mediums
|
||||
that do not support other than simple
|
||||
.Tn ASCII
|
||||
data.
|
||||
The
|
||||
.Nm b64encode
|
||||
utility is synonymous with
|
||||
.Nm
|
||||
with the
|
||||
.Fl m
|
||||
flag specified.
|
||||
The
|
||||
.Nm b64decode
|
||||
utility is synonymous with
|
||||
.Nm uudecode .
|
||||
.Pp
|
||||
The
|
||||
.Nm
|
||||
|
@ -83,6 +83,9 @@ main(int argc, char *argv[])
|
||||
base64 = 0;
|
||||
outfile = NULL;
|
||||
|
||||
if (strcmp(argv[0], "b64encode") == 0)
|
||||
base64 = 1;
|
||||
|
||||
while ((ch = getopt(argc, argv, "mo:")) != -1) {
|
||||
switch (ch) {
|
||||
case 'm':
|
||||
|
Loading…
x
Reference in New Issue
Block a user