This is a port of GNU patch 2.6.1 to MSDOS/DJGPP.

1.:     DJGPP specific changes.
        =======================

        - support for numbered backups even on 8+3 filesystems.

        - Patch can now ignore the CR characters at the end of each line
          of the patch script, so patching Unix-style text files does not
          convert them to DOS-style files anymore (if you use the --binary
          switch).

        As usual, all djgpp specific files (config.bat, diffs, readme files,
        etc.) are located in the /djgpp subdir. The dir /pc/djgpp contains
        djgpp specific files shipped with the original FSF distribution and
        are no longer used.


2.:     Installing the binary package.
        ==============================

2.1.:   Copy the binary distribution into the top DJGPP installation directory
        and unzip it running one of the following commands:
          unzip32 pat261b.zip      or
          djtarx pat261b.zip       or
          pkunzip -d pat261b.zip

        For futher information about GNU patch please read the man page
        and the NEWS file.


3.:     Building the binaries from sources.
        ===================================

3.1.:   To build the binaries you will need the following binary packages:
          djdev203.zip (patch level 2, see the djdev203.dsm or a later version)
          bsh205bbr3.zip (or a later but NOT a prior version)
          gccNNNb.zip, bnuNNNb.zip, makNNNb.zip, filNNNb.zip, shlNNNb.zip,
          txtNNNb.zip, txiNNNb.zip, grepNNNb.zip, sedNNNb.zip and difNNNb.zip.

        You will also need lsuppNNNa.zip to provide certain multibyte wrapper
        functions without them the sources cannot be compiled.  To run the test
        suite you will also nedd to install mktmpNNb.zip.

        All this packages can be found in the v2gnu directory of ftp.delorie.com
        and any mirror.  NNN stands for the newest port versions available when
        this port was build but older may do the work as well.

3.2.:   Create a temporary directory. Copy the source package: pat261s.zip
        into the directory and unzip it runnig one of the following commands:
          unzip32 pat261s.zip      or
          djtarx pat261s.zip       or
          pkunzip -d pat261s.zip

3.3.:   This package does not have NLS support.
        If for some reason you want to reconfigure the package cd into the top
        srcdir (patch-2.6-1) and run the following commands:
          del djgpp\config.cache
          make distclean
          djgpp\config

        Please note that you *MUST* delete the config.cache file in the djgpp
        subdir or you will not really reconfigure the sources because the
        configuration informations will be read from the cache file instead
        of being newly computed.
        To build the programs in a directory other than where the sources are,
        you must add the parameter that specifies the source directory,
        e.g:
          x:\src\gnu\patch-2.6-1\djgpp\config x:/src/gnu/patch-2.6-1

        Lets assume you want to build the binaries in a directory placed on a
        different drive (z:\build in this case) from where the sources are,
        then you will run the following commands:
          z:
          md \build
          cd \build
          x:\src\gnu\patch-2.6-1\djgpp\config x:/src/gnu/patch-2.6-1

        The order of the options and the srcdir option does not matter. You
        must use forward slashes to specify the source directory.

        The batch file will set same environment variables, make MSDOS specific
        modifications to the Makefile.ins and supply all other needed options
        to the configure script.


3.4.:   To compile the package run from the top srcdir the command:
          make

3.5.:   To install the binary, info docs and man pages run the following command
        from the top srcdir:
          make install

        This will install the products into your DJGPP installation tree given
        by the default prefix "/dev/env/DJDIR". If you prefer to install them
        into some other directory you will have to set prefix to the appropiate
        value.
        Example:
          make install prefix=z:/some/other/dir




        Send sed specific bug reports to <bug-patch@gnu.org>.
        Send suggestions and bug reports concerning the DJGPP port
        to comp.os.msdos.djgpp or <djgpp@delorie.com>.

Enjoy.

          Guerrero, Juan Manuel <juan.guerrero@gmx.de>
