nicolas / debian.moreutils (public) (License: GPL-2, GPL-2+, Expat, BSD-2-Clause, Public Domain) (since 2018-09-25) (hash sha1)
Debian packaging of joeyh's moreutils
List of commits:
Subject Hash Author Date (UTC)
chronic: New command, runs a command quietly, unless it fails. 11eb9b1ae7b81f3bbf52047a7a8ec995b7808970 Joey Hess 2010-10-29 19:49:33
releasing version 0.42 dc7df101d71be5c504529a47c541aa8bfc82edca Joey Hess 2010-10-07 00:06:06
update 1895d25c9bca0b78b86592f568710d8f45735f08 Joey Hess 2010-09-13 20:38:28
minor 6d1ac81ec62f257ea17b9548ad539b64c743124a Joey Hess 2010-09-13 20:36:55
put back optimisation when outputting to stdout 32b1e7134b8f07cd3e16d4e3dc7414cbf1305e07 Joey Hess 2010-09-13 20:33:56
sponge: Ensure that output file permissions are always preserved if it already exists. 1ac3e2c08bae4bd8e5e771dab94564d79638d414 Joey Hess 2010-09-13 20:08:01
indentation change 067b7a5419db8e78eeeee9ad62f798cb33be1e05 Joey Hess 2010-09-13 19:57:49
sponge: Guarantee that output file is always updated atomically, by renaming a temp file into place. Closes: #592144 60b82b59a729d2a4322c3305d7207ce027831e23 Joey Hess 2010-09-13 19:55:34
Typo. Closes: #596032 e32af5bdb524059c98c6e158baa78db308609be0 Joey Hess 2010-09-08 06:09:43
releasing version 0.41 5d40038af260b233bf64fa8dab00a55d65cada8c Joey Hess 2010-09-02 20:49:37
sponge: Correct bad use of fread that caused a trailing quantity of soaked data to be silently discarded when a temp file was used and sponge output to stdout. Closes: #595220 a456619d189cef2933aefef86606ae4b29516c85 Joey Hess 2010-09-02 20:39:51
fix url 28242c4d201f281e0e72e674f13728aca8f422c7 Joey Hess 2010-07-12 19:05:00
Add missing AUTHOR section to docbook man pages. 40d283244f9ea5e83422b9c486d07171386890b0 Joey Hess 2010-07-12 19:01:32
ifdata.docbook: Mark interface as required in synopsis. Closes: #588397 8064766e05fa6d49c3a481ac634291b24818b973 Joey Hess 2010-07-08 18:40:30
clarify 174f95e703fff88307f203f2fa30ddebf27839f7 Joey Hess 2010-07-07 17:08:48
releasing version 0.40 5e413817d726a2879f56c94f498dcaa94f887813 Joey Hess 2010-07-06 23:42:05
update 9b22d8c29882a723df4db6f993e283ce37f0acc7 Joey Hess 2010-07-06 19:08:08
parallel: -i will now replace {} inside parameters, before the {} had to be a separate parameter. b5af8181d2bb7e08e08fcab7a0d5910acb7a8522 Joey Hess 2010-07-06 19:06:51
optimisations and fix memory leak b01a6aabcf738b3d86c0fce2164861f783ed37ca Joey Hess 2010-07-06 18:55:22
lckdo: Now deprecated, since util-linux's flock(1) can do the same thing. f597f10475a2e906b96e2856818632dbf66a61b5 Joey Hess 2010-06-18 17:07:10
Commit 11eb9b1ae7b81f3bbf52047a7a8ec995b7808970 - chronic: New command, runs a command quietly, unless it fails.
Author: Joey Hess
Author date (UTC): 2010-10-29 19:49
Committer name: Joey Hess
Committer date (UTC): 2010-10-29 19:49
Parent(s): dc7df101d71be5c504529a47c541aa8bfc82edca
Signer:
Signing key:
Signing status: N
Tree: 8f2bbc3e7ba6f563e950d51dcdc7f1060b161281
File Lines added Lines deleted
Makefile 2 2
README 14 26
chronic 63 0
debian/changelog 7 0
debian/control 2 1
File Makefile changed (mode: 100644) (index 377121d..3ffd562)
1 1 BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel
2 PERLSCRIPTS=vidir vipe ts combine zrun
3 MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1 parallel.1
2 PERLSCRIPTS=vidir vipe ts combine zrun chronic
3 MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1
4 4 CFLAGS=-O2 -g -Wall CFLAGS=-O2 -g -Wall
5 5 INSTALL_BIN?=install -s INSTALL_BIN?=install -s
6 6 PREFIX=/usr PREFIX=/usr
File README changed (mode: 100644) (index 548acf2..6a10099)
1 1 This is a collection of the unix tools that nobody thought to write This is a collection of the unix tools that nobody thought to write
2 2 long ago, when unix was young. Currently it consists of these tools: long ago, when unix was young. Currently it consists of these tools:
3 3
4 combine
5 combine the lines in two files using boolean operations
6 ifdata
7 get network interface info without parsing ifconfig output
8 isutf8
9 check if a file or standard input is utf-8
10 ifne
11 run a command if the standard input is not empty
12 lckdo
13 execute a program with a lock held (deprecated)
14 mispipe
15 pipe two commands, returning the exit status of the first
16 parallel
17 run multiple jobs at once
18 pee
19 tee standard input to pipes
20 sponge
21 soak up standard input and write to a file
22 ts
23 timestamp standard input
24 vidir
25 edit a directory in your text editor
26 vipe
27 insert a text editor into a pipe
28 zrun
29 automatically uncompress arguments to command
4 chronic: runs a command quietly unless it fails
5 combine: combine the lines in two files using boolean operations
6 ifdata: get network interface info without parsing ifconfig output
7 isutf8: check if a file or standard input is utf-8
8 ifne: run a command if the standard input is not empty
9 lckdo: execute a program with a lock held (deprecated)
10 mispipe: pipe two commands, returning the exit status of the first
11 parallel: run multiple jobs at once
12 pee: tee standard input to pipes
13 sponge: soak up standard input and write to a file
14 ts: timestamp standard input
15 vidir: edit a directory in your text editor
16 vipe: insert a text editor into a pipe
17 zrun: automatically uncompress arguments to command
30 18
31 19 Its web page is here: http://kitenet.net/~joey/code/moreutils/ Its web page is here: http://kitenet.net/~joey/code/moreutils/
32 20
File chronic added (mode: 100755) (index 0000000..783b5e0)
1 #!/usr/bin/perl
2
3 =head1 NAME
4
5 chronic - runs a command quietly unless it fails
6
7 =head1 SYNOPSIS
8
9 chronic COMMAND...
10
11 =head1 DESCRIPTION
12
13 chronic runs a command, and agganges for its standard out and standard
14 error to only be displayed if the command fails (exits nonzero or crashes).
15 If the command succeeds, any extraneous output will be hidden.
16
17 A common use for chronic is for running a cron job. Rather than
18 trying to keep the command quiet, and having to deal with mails containing
19 accidental output when it succeeds, and not verbose enough output when it
20 fails, you can just run it verbosely always, and use chronic to hide
21 the successful output.
22
23 5 0 * * * chronic rsync -v foo bar
24
25 =head1 AUTHOR
26
27 Copyright 2010 by Joey Hess <joey@kitenet.net>
28
29 Original concept and "chronic" name by Chuck Houpt.
30
31 Licensed under the GNU GPL version 2 or higher.
32
33 =cut
34
35 use warnings;
36 use strict;
37 use IPC::Run qw( start pump finish timeout );
38
39 if (! @ARGV) {
40 die "usage: chronic COMMAND...\n";
41 }
42
43 my ($out, $err);
44 my $h = IPC::Run::start \@ARGV, \*STDIN, \$out, \$err;
45 $h->finish;
46 my $ret=$h->full_result;
47
48 if ($ret >> 8) { # child failed
49 showout();
50 exit ($ret >> 8);
51 }
52 elsif ($ret != 0) { # child killed by signal
53 showout();
54 exit 1;
55 }
56 else {
57 exit 0;
58 }
59
60 sub showout {
61 print STDOUT $out;
62 print STDERR $err;
63 }
File debian/changelog changed (mode: 100644) (index 232f832..958e380)
1 moreutils (0.43) UNRELEASED; urgency=low
2
3 * chronic: New command, runs a command quietly, unless it fails.
4 * Now depends on IPC::Run, used by chronic.
5
6 -- Joey Hess <joeyh@debian.org> Fri, 29 Oct 2010 15:23:17 -0400
7
1 8 moreutils (0.42) unstable; urgency=low moreutils (0.42) unstable; urgency=low
2 9
3 10 * sponge: Guarantee that output file is always updated atomically, * sponge: Guarantee that output file is always updated atomically,
File debian/control changed (mode: 100644) (index 6af7d48..451240b)
... ... Homepage: http://kitenet.net/~joey/code/moreutils/
9 9
10 10 Package: moreutils Package: moreutils
11 11 Architecture: any Architecture: any
12 Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
12 Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, libipc-run-perl
13 13 Suggests: libtime-duration-perl, libtimedate-perl Suggests: libtime-duration-perl, libtimedate-perl
14 14 Conflicts: lckdo Conflicts: lckdo
15 15 Replaces: lckdo Replaces: lckdo
 
... ... Description: additional Unix utilities
18 18 to write long ago, when Unix was young. to write long ago, when Unix was young.
19 19 . .
20 20 So far, it includes the following utilities: So far, it includes the following utilities:
21 - chronic: runs a command quietly unless it fails
21 22 - combine: combine the lines in two files using boolean operations - combine: combine the lines in two files using boolean operations
22 23 - ifdata: get network interface info without parsing ifconfig output - ifdata: get network interface info without parsing ifconfig output
23 24 - ifne: run a program if the standard input is not empty - ifne: run a program if the standard input is not empty
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/nicolas/debian.moreutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main