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)
ifne: If no command is specified, print usage information. 99e7bc2550ca8fc57af19410e28958e46a2d6f15 Joey Hess 2008-05-12 20:04:36
Added -n option to ifne. 4425bfd45edfc4d2be18ce6d2a2eeb7ab80f7a6c Vicho 2008-05-01 10:17:45
update 8c45ad625cf68e210387a08611f775093c3ea49e Joey Hess 2008-05-10 22:05:05
typo b02ae7c9f2237b4e09bceae4b42ec76f0a458ea0 Joey Hess 2008-05-10 22:05:01
eh, I didn't mean to revert that 57961470b587d8e26202ea15beec018dbd07bc6c Joey Hess 2008-05-10 22:02:55
Revert "debhelper v7; rules file minimisation" 64d494126de003b66293268b3be6556a86ff73e8 Joey Hess 2008-05-10 16:37:48
patch for moreutils Makefile 6824744a68f35eb4615b877267922d50a40a1122 Greg KH 2008-05-10 05:49:30
debhelper v7; rules file minimisation 83e8da32e5d3154f1c97e6eb62c30450ff95b5af Joey Hess 2008-04-26 23:27:12
releasing version 0.29 ab100606238850f43106ea7a3c939833efd25378 Joey Hess 2008-04-15 19:37:21
ts improvements decdf6ec49194e5c02fa42c3a235bdefee224175 Joey Hess 2008-04-13 00:37:28
fix mode of new file renamed from temp file c525af9d17aacb226d72495d1bd401ce001b03f6 Joey Hess 2008-04-11 23:11:33
minor changes b6d635bc28bf7d94201bcd167905cebc48abf7cb Joey Hess 2008-04-11 23:03:50
honor TMPDIR f69844b98d71598fbf9ef3f4da137b16eff1621e Joey Hess 2008-04-11 22:55:10
optimize tempfile copying 6f31909ff74c064ea0b5126219b3e8f7b8826bee Joey Hess 2008-04-11 22:34:34
more fixes to tempfile writeback a580bbd17850753746d6d1a2b65817edaf4485c9 Joey Hess 2008-04-11 22:27:40
set umask before calling mkstemp 0595609018095dabd5d1a56cf03ddcc008a9e928 Joey Hess 2008-04-11 21:47:28
update physmem copyright 30746c4357c0ac6110ca7e2a279ce9e82e879581 Joey Hess 2008-04-11 21:44:19
fix two bugs writing the output file 6fa7d9907e7211f06656b296940aaca1d6b4d1df Joey Hess 2008-04-11 21:42:38
move code into a function dcb580b3998a19b112004f23298490a34af59fc8 Joey Hess 2008-04-11 20:15:29
fix edge cases ee4e74dd6a20706f29ef30a2613a1977f6f325fa Joey Hess 2008-04-11 20:10:18
Commit 99e7bc2550ca8fc57af19410e28958e46a2d6f15 - ifne: If no command is specified, print usage information.
Author: Joey Hess
Author date (UTC): 2008-05-12 20:04
Committer name: Joey Hess
Committer date (UTC): 2008-05-12 20:04
Parent(s): 4425bfd45edfc4d2be18ce6d2a2eeb7ab80f7a6c
Signing key:
Tree: 5c4005a9db49bb65ddad48af7d36e5aa3f6bdad9
File Lines added Lines deleted
debian/changelog 2 0
ifne.c 2 2
ifne.docbook 2 0
File debian/changelog changed (mode: 100644) (index e617044..6e7b813)
... ... moreutils (0.30) UNRELEASED; urgency=low
3 3 * debhelper v7; rules file minimisation * debhelper v7; rules file minimisation
4 4 * Use DESTDIR instead of PREFIX. * Use DESTDIR instead of PREFIX.
5 5 * Add a DOCBOOK2XMAN setting. (Greg KH) * Add a DOCBOOK2XMAN setting. (Greg KH)
6 * ifne: Add -n which makes it run the command if stdin is empty.
7 * ifne: If no command is specified, print usage information.
6 8
7 9 -- Joey Hess <joeyh@debian.org> Sat, 26 Apr 2008 19:23:10 -0400 -- Joey Hess <joeyh@debian.org> Sat, 26 Apr 2008 19:23:10 -0400
8 10
File ifne.c changed (mode: 100644) (index a7abd21..d8ecea9)
... ... int main(int argc, char **argv) {
50 50 FILE *outf; FILE *outf;
51 51
52 52 if ((argc < 2) || ((argc == 2) && streq(argv[1], "-n"))) { if ((argc < 2) || ((argc == 2) && streq(argv[1], "-n"))) {
53 /* Noop */
54 return EXIT_SUCCESS;
53 fprintf(stderr, "Usage: ifne [-n] command [args]\n");
54 return EXIT_FAILURE;
55 55 } }
56 56
57 57 if (streq(argv[1], "-n")) { if (streq(argv[1], "-n")) {
File ifne.docbook changed (mode: 100644) (index 38e3889..41fa9ab)
... ... with this program; if not, write to the Free Software Foundation, Inc.,
67 67 <term><option>-n</option></term> <term><option>-n</option></term>
68 68 <listitem> <listitem>
69 69 <para>Reverse operation. Run the command if the standard input is empty.</para> <para>Reverse operation. Run the command if the standard input is empty.</para>
70 <para>Note that if the standard input is not empty, it is passed through ifne
71 in this case.</para>
70 72 </listitem> </listitem>
71 73 </varlistentry> </varlistentry>
72 74 </variablelist> </variablelist>
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