2 ec8f1d27 2023-12-27 benni .\" Copyright (c) 2023 Benjamin Stürz
4 ec8f1d27 2023-12-27 benni .\" Permission to use, copy, modify, and distribute this software for any
5 ec8f1d27 2023-12-27 benni .\" purpose with or without fee is hereby granted, provided that the above
6 ec8f1d27 2023-12-27 benni .\" copyright notice and this permission notice appear in all copies.
8 ec8f1d27 2023-12-27 benni .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 ec8f1d27 2023-12-27 benni .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 ec8f1d27 2023-12-27 benni .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 ec8f1d27 2023-12-27 benni .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 ec8f1d27 2023-12-27 benni .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 ec8f1d27 2023-12-27 benni .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 ec8f1d27 2023-12-27 benni .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 ec8f1d27 2023-12-27 benni .Dd $Mdocdate$
17 ec8f1d27 2023-12-27 benni .Dt GOT-ARCHIVE 1
20 ec8f1d27 2023-12-27 benni .Nm got-archive
21 ec8f1d27 2023-12-27 benni .Nd git-archive(1) clone for got-archive(1)
22 ec8f1d27 2023-12-27 benni .Sh SYNOPSIS
25 ec8f1d27 2023-12-27 benni .Op Fl o Ar outdir
26 ec8f1d27 2023-12-27 benni .Op Fl t Ar tmpdir
28 67f102f4 2023-12-28 benni .Op Ar ref...
32 67f102f4 2023-12-28 benni .Op Fl o Ar outdir
33 67f102f4 2023-12-28 benni .Op Fl t Ar tmpdir
37 ec8f1d27 2023-12-27 benni .Sh DESCRIPTION
39 67f102f4 2023-12-28 benni is a small helper script for got(1) that simplifies the creation of tarballs for repositories.
44 67f102f4 2023-12-28 benni .Dl - a commit hash,
45 67f102f4 2023-12-28 benni .Dl - a branch,
46 67f102f4 2023-12-28 benni .Dl - a tag,
47 67f102f4 2023-12-28 benni .Dl - or HEAD (refering to eg. master or main)
49 ec8f1d27 2023-12-27 benni The options are as follows:
50 ec8f1d27 2023-12-27 benni .Bl -tag -width -Ds
52 67f102f4 2023-12-28 benni Generate tarballs for all tags in
55 67f102f4 2023-12-28 benni Overwrite existing tarballs.
56 ec8f1d27 2023-12-27 benni .It Fl o Ar outdir
57 ec8f1d27 2023-12-27 benni An existing directory in which the tarball will be created.
58 ec8f1d27 2023-12-27 benni By default, this will be the current working directory.
60 ec8f1d27 2023-12-27 benni Strip a preceding "v" from the
62 67f102f4 2023-12-28 benni This is useful for tags that like v1.0.
63 ec8f1d27 2023-12-27 benni .It Fl t Ar tmpdir
64 ec8f1d27 2023-12-27 benni A temporary directory used for the checkout.
65 ec8f1d27 2023-12-27 benni By default, this will be
66 ec8f1d27 2023-12-27 benni .Ar /tmp/got-archive .
68 ec8f1d27 2023-12-27 benni Print the version of got-archive(1) and exit.
69 ec8f1d27 2023-12-27 benni .Sh EXIT STATUS
70 ec8f1d27 2023-12-27 benni .Ex -std got-archive
71 ec8f1d27 2023-12-27 benni .Sh EXAMPLES
72 67f102f4 2023-12-28 benni Create a tarball for the master/main branch of
73 ec8f1d27 2023-12-27 benni .Pa /var/git/example.git .
75 ec8f1d27 2023-12-27 benni .Dl $ got-archive /var/git/example.git
77 67f102f4 2023-12-28 benni Generate tarballs for all tags of
78 ec8f1d27 2023-12-27 benni .Pa /var/git/example.git
82 67f102f4 2023-12-28 benni .Dl $ got-archive -a -o /mnt /var/git/example.git
84 67f102f4 2023-12-28 benni Generate tarballs for all tags in all repositories in
85 67f102f4 2023-12-28 benni .Pa /var/git .
87 67f102f4 2023-12-28 benni .Dl $ for r in /var/git/*.git; do got-archive -ao /mnt """$r"""; done
88 ec8f1d27 2023-12-27 benni .Sh SEE ALSO
89 ec8f1d27 2023-12-27 benni .Xr got 1 ,
91 ec8f1d27 2023-12-27 benni .Sh AUTHORS
92 ec8f1d27 2023-12-27 benni .An Benjamin Stürz Aq Mt benni@stuerz.xyz