Provided by: dbs_0.45_all bug

NAME

       dbs-edit-patch - Edit a DBS patch

SYNOPSIS

       dbs-edit-patch [options] patch
       dbs-edit-patch -h|--help

DESCRIPTION

       dbs-edit-patch  is  script  to  generate  or  modify patches for Debian
       source-packages in DBS format.

OPTIONS

       -h, --help
              Show summary of options.

       -t dir, --tmpdir=dir
              Directory for the temporary files, default is  /tmp  or  if  set
              $TMP.

       -s dir, --sourcedir=dir
              Top  level  directory of the debian-package source-tree, default
              is the present working directory.

       -P dir, --sourcepatchdir=dir
              Directory containing upstream patches.

       -T dir, --sourcetardir=dir
              Directory containing the upstream tarball.

       -p level, --strip= level
              Striplevel -p of patch (Option -p of diff(1)),  accepted  values
              are 0 and 1, default is 0.

ENVIRONMENT VARIABLES

       TMP    Sets  the  directory  for  the temporary files, can be overriden
              with -t dir.

EXAMPLES

       Edit the 021_debian patch of Heimdal:

           ~/heimdal-0.3d> dbs-edit-patch -t/tmp 021_debian
           Extracting source heimdal-0.3d.tar.gz ... successful.
           Applying patch 001_replay ... successful.
           etc.
           Copying heimdal-0.3d to heimdal-0.3d-old ... successful.
           Applying patch 021_debian ... successful.

       Edit files under /tmp/021_debian/heimdal-0.3d as required, then execute
       /tmp/021_debian/dbs_update_patch to save the results.

       Technote:  dbs-edit-patch  extracts  all patches before 021_debian into
       /tmp/021_debian/heimdal-0.3d,      copies      the      result       to
       /tmp/021_debian/heimdal-0.3d-old, and applies the last patch 021_debian
       (if it exists). Also, it creates a shell archive which will create  the
       diff between the old and new directories:

           ~/heimdal-0.3d> ls -l /tmp/021_debian
           total 12
           -rwxr-xr-x    1 bam      users         112 Jan 31 13:31 dbs-update-patch*
           drwxr-xr-x   14 bam      users        4096 Jan 31 13:31 heimdal-0.3d/
           drwxr-xr-x   14 bam      users        4096 Jan 31 13:31 heimdal-0.3d-old/

           ~/heimdal-0.3d> cat /tmp/021_debian/dbs-update-patch
           #!/bin/sh
           diff -ruN /tmp/021_debian/heimdal-0.3d /tmp/021_debian/heimdal-0.3d-old > ./debian/patches/021_debian

SEE ALSO

       diff(1),                  dbs(7),                  /usr/share/doc/dbs/,
       http://snoopy.apana.org.au/~bam/debian/faq/#dbs

AUTHOR

       DBS was written by Adam Heath, modified by Ben  Collins,  modified  and
       packaged for Debian by Brian May. This manpage was generated by Andreas
       Metzler.