diff options
author | Aki <please@ignore.pl> | 2023-12-28 14:32:06 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-12-28 14:32:06 +0100 |
commit | a690ee5ab819ef03176194b044a6854b2a07e1ab (patch) | |
tree | 54e93f202385dc9c4a56a14d71f44e5b0f2e85f1 /mirror.1 | |
parent | 939ac08827a035b0f144219ea2f3a6c0646e1b5f (diff) | |
download | mirror-a690ee5ab819ef03176194b044a6854b2a07e1ab.zip mirror-a690ee5ab819ef03176194b044a6854b2a07e1ab.tar.gz mirror-a690ee5ab819ef03176194b044a6854b2a07e1ab.tar.bz2 |
A non-zero exit status will be returned on one or more failure
Tool will now use date-based versioning scheme: '%Y%m%d.N', where N will
get incremented if multiple releases happen during a day. This is not done
automatically currently.
Some additional smaller changes were done to support exit status and
versioning.
Diffstat (limited to 'mirror.1')
-rw-r--r-- | mirror.1 | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,9 +1,10 @@ -.TH mirror 1 "2023-04-15" +.TH mirror 1 "2023-12-28" .SH NAME mirror \- copies remote git repositories in bulk .SH SYNOPSIS .SY mirror .RI [ list ] +.SY mirror\ -v .YS .SH DESCRIPTION This script will read @@ -14,7 +15,14 @@ provided will default to .B repositories.list in the current working directory. +.P +With +.B -v +option the script will print version information to standard output and terminate immediately after. .SH EXIT STATUS -Script is not expected to provide a useful exit status as of now. +Exit status is zero if all repositories in the list have been mirrored successfully or if +.B -v +option was used. If one or more mirrors fail or an unknown command-line option is provided, a non-zero status is +returned. .SH SEE ALSO .BR git (1) |