1RREDTOOL(1)                        REPREPRO                        RREDTOOL(1)
2
3
4

NAME

6       rredtool - merge or apply a very restricted subset of ed patches
7

SYNOPSIS

9       rredtool --help
10
11       rredtool [ options ] --merge patches...
12
13       rredtool [ options ] --patch file-to-patch patches...
14
15       rredtool directory newfile oldfile mode
16

DESCRIPTION

18       rredtool  is a tool to handle a subset of ed patches in a safe way.  It
19       is especially targeted at ed  patches  as  used  in  Packages.diff  and
20       Sources.diff.   Is  also has a mode supposed to be called from reprepro
21       as Index Hook to generate and update a Packages.diff/Index file.
22

MODI

24       One of the following has to be given, so that rredtool know that to do.
25
26       --version
27              Print the version of this tool (or rather the version of  repre‐
28              pro which it is coming with).
29
30       --help Print a short overview of the modi.
31
32       --patch
33              The  first  argument of rredtool is the file to patch, the other
34              arguments are ed patches to apply on this one.
35
36       --merge
37              The arguments are treated as ed patches, which are merged into a
38              single one.
39
40       --reprepro-hook (or no other mode flag)
41              Act as reprepro index hook to manage a Packages.diff/index file.
42              That means it expects to get exactly 4 arguments and writes  the
43              names of files to place into filedescriptor 3.
44
45              If  neither  --patch nor --merge is given, this mode is used, so
46              you can just put
47
48               DebIndices: Packages Release . .gz /usr/bin/rredtool
49
50              into reprepro's conf/distributions file to have a  Packages.diff
51              directory  generated.  (Note that you have to generate an uncom‐
52              pressed file (the single dot).  You will  need  to  have  patch,
53              gzip and gunzip available in your path.)
54
55

OPTIONS

57       --debug
58              Print intermediate results or other details that might be inter‐
59              esting when trying to  track  down  bugs  in  rredtool  but  not
60              intresting otherwise.
61
62       --max-patch-count=count
63              When  generating  a  Packages.diff/Index file, put at most count
64              patches in it (not counting possible apt workaround patches).
65
66       -o|--output
67              Not yet implemented.
68

ENVIRONMENT

70       TMPDIR, TEMPDIR
71              temporary files are created in $TEMPDIR  if  set,  otherwise  in
72              $TMPDIR if set, otherwise in /tmp/.
73

REPORTING BUGS

75       Report  bugs or wishlist requests the Debian BTS (e.g. by using report‐
76       bug reperepro) or directly to <brlink@debian.org>.
77
79       Copyright © 2009 Bernhard R. Link
80       This is free software; see the source for copying conditions. There  is
81       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
82       PURPOSE.
83
84
85
86reprepro                          2009-11-12                       RREDTOOL(1)
Impressum