]> granicus.if.org Git - recode/commitdiff
DJGPP files, READMEs adjusted
authorFrançois Pinard <pinard@iro.umontreal.ca>
Sat, 15 Mar 2008 20:00:51 +0000 (16:00 -0400)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Sat, 15 Mar 2008 20:00:51 +0000 (16:00 -0400)
19 files changed:
Makefile.am
Makefile.in
README
THANKS
contrib/Amiga/lib-Makefile [moved from contrib/lib-Makefile.Amiga with 100% similarity]
contrib/Amiga/src-Makefile [moved from contrib/src-Makefile.Amiga with 100% similarity]
contrib/ChangeLog
contrib/DJGPP/README [new file with mode: 0644]
contrib/DJGPP/README.in [new file with mode: 0644]
contrib/DJGPP/config.site [new file with mode: 0644]
contrib/DJGPP/configdj.bat [new file with mode: 0644]
contrib/DJGPP/configdj.sed [new file with mode: 0644]
contrib/DJGPP/fnchange.in [new file with mode: 0644]
contrib/DJGPP/fnchange.lst [new file with mode: 0644]
contrib/Makefile.am
contrib/Makefile.in
contrib/README
contrib/djgpp-README [deleted file]
contrib/djgpp-diffs [deleted file]

index 4559ef0a10640b5eaba9dd1db44d2e82b4761de7..eb6acf7fcaed1de0df0a0c02eb8bab02696823a7 100644 (file)
@@ -39,6 +39,7 @@ get-po-files:
 # The following goals for the maintainer of the Recode Web site.
 
 local:
+       $(MAKE) -C contrib
        ajuster-web $(top_srcdir)/web
        make-manual $(top_srcdir)/doc/recode.texi $(top_srcdir)/web/manual
 
index 6ca04ec4c4ecfea489911baf02b8fae5d40592fa..15ea814af0bdc490dae49e10509bc5d8a4c15ee8 100644 (file)
@@ -696,6 +696,7 @@ get-po-files:
 # The following goals for the maintainer of the Recode Web site.
 
 local:
+       $(MAKE) -C contrib
        ajuster-web $(top_srcdir)/web
        make-manual $(top_srcdir)/doc/recode.texi $(top_srcdir)/web/manual
 
diff --git a/README b/README
index e94a72a9aa09fac826992ec197d5066bb70280e6..edd4c405b9448957ae20ac1b84e1bfa03e63e159 100644 (file)
--- a/README
+++ b/README
@@ -485,20 +485,35 @@ ports to non-Unix systems not listed here, or for corrections.  Please
 provide the goal system, a complete and stable URL, the maintainer name
 and address, the Recode version used as a base, and your comments.
 
-+ IBM/PC (MSDOS)
++ MSDOS (DJGPP)
 
-  + + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode34b.zip
-    + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode34s.zip
-    + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode34d.zip
+  Juan Manuel Guerrero <juan.guerrero@gmx.de> maintains this port,
+  dated 2001-03 and based on Recode 3.5.  The following archives hold
+  binaries, docs and sources respectively.
 
-    (for binaries, sources and docs respectively) maintained by Wojciech
-    Galazka <wgalazka@chem.uw.edu.pl> Based on Recode 3.4.1.
+  + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode35b.zip
+  + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode35d.zip
+  + ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/rcode35s.zip
 
-  + + http://www.simtel.net/simtel.net/
-    + http://www.leo.org/pub/comp/platforms/pc/gnuish (Germany)
-    + ftp://ftp.simtel.net/simtelnet/gnu
-    + ftp://ftp.leo.org/pub/comp/platforms/pc/gnuish
+  See `contrib/DJGPP/README`__ in the Recode distribution for more
+  information about compiling this port.
 
-    maintained by Darrel Hankerson <hankedr@mail.auburn.edu> You get
-    many GNU tools, not only Recode.  The GNUish project is described in
-    :file:`gnuish_t.htm`.
+  __ /DJGPP.html
+
++ MSDOS (Gnuish)
+
+  Darrel Hankerson <hankedr@mail.auburn.edu> maintains this port, dated
+  1994-11 and based on Recode 3.4.  You get many GNU tools, not only
+  Recode.  The GNUish project is described in :file:`gnuish_t.htm`.
+
+  + http://www.simtel.net/simtel.net/
+  + http://www.leo.org/pub/comp/platforms/pc/gnuish (Germany)
+  + ftp://ftp.simtel.net/simtelnet/gnu
+  + ftp://ftp.leo.org/pub/comp/platforms/pc/gnuish
+
++ OS/2 (using emx/gcc)
+
+  Maintainer unknown (maybe Kai Uwe Rommel <rommel@ars.de>), dated
+  1994-11 and based on Recode 3.4.
+
+  + http://hobbes.nmsu.edu/pub/os2/util/convert/gnurcode.zip
diff --git a/THANKS b/THANKS
index 6cf30bfed55dc1fade7bdf08912f4f2b0b565084..38d161c401822740f3b1e1a4a21a421ea67340ae 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -122,6 +122,7 @@ Jörg Höhle                Joerg.Hoehle@gmd.de
                        http://fit.gmd.de/~hoehle/
 Jose Joao Almeida      jj@di.uminho.pt
                        http://www.di.uminho.pt/~jj
+Juan Manuel Guerrero   juan.guerrero@gmx.de
 Julio Sanchez          jsanchez@gmv.es
 Juliusz Chroboczek     jch@clipper.ens.fr
 Juergen Zeller         zet@rupert.franken.de
index 26adaf710371402c05c54017aff3e2199b1a3a1e..92cf1d59c8e54236d33ebdb5c1bf3905ef16cb4b 100644 (file)
@@ -1,3 +1,14 @@
+2008-03-15  François Pinard  <pinard@iro.umontreal.ca>
+
+       * Amiga/lib-Makefile: Previously lib-Makefile.Amiga.
+       * Amiga/src-Makefile: Previously src-Makefile.Amiga.
+       * Makefile.am: Adjusted.
+
+       * DJGPP/README.in, DJGPP/config.site, DJGPP/configdj.bat,
+       DJGPP/configdj.sed, DJGPP/fnchange.in: New files.
+       * djgpp-README, djgpp-diffs: Deleted.
+       Reported by Juan Manuel Guerrero.
+
 2008-03-08  François Pinard  <pinard@iro.umontreal.ca>
 
        * README, djgpp-README: Write Recode, not Free recode.
diff --git a/contrib/DJGPP/README b/contrib/DJGPP/README
new file mode 100644 (file)
index 0000000..0d378b3
--- /dev/null
@@ -0,0 +1,305 @@
+.. role:: code(strong)\r
+.. role:: file(literal)\r
+\r
+========================================\r
+README file for the DJGPP port of Recode\r
+========================================\r
+\r
+.. contents::\r
+.. sectnum::\r
+\r
+:Porter: Juan Manuel Guerrero\r
+:Email: juan.guerrero@gmx.de\r
+\r
+This is a port of Recode to MSDOS/DJGPP.  The instructions given here,\r
+and the port itself, were produced for a pretest yielding to Recode 3.6.\r
+They might need revision or undusting for later Recode versions.\r
+\r
+DJGPP specific changes\r
+======================\r
+\r
+There are no DJGPP specific changes.  The original distribution should\r
+configure and compile out-of-the-box.  If there are last minute DJGPP\r
+specific changes, then they will be documented in the diffs file placed\r
+in the :file:`contrib/DJGPP` subdirectory.  This DJGPP port of recode\r
+3.7-beta2 offers NLS out-of-the-box.\r
+\r
+Installing the binary package\r
+=============================\r
+\r
++ If you are installing Recode on dual DOS/WINDOWS 9X systems, you\r
+  should first turn off the generation of numeric tails for 8.3 aliases\r
+  Windows creates for long file names.  For information about how to do\r
+  this, please read the DJGPP FAQ List V 2.30, chapter 22.19: "How to Set\r
+  Up a Dual DOS/Windows Installation."\r
+\r
+  Please note that you *must* turn off the numeric tail generation\r
+  for short file names during installation of the binary package if you\r
+  want to use the recode program on both DOS box on Win9X *and* plain\r
+  DOS.  If this is not done recode will *not* be able to find the\r
+  :file:`.mo` files (the catalogs containing the translated strings).\r
+  After the installation has been finished you can turn on numeric tail\r
+  generation again if you like.\r
+\r
++ Copy the binary distribution into the top DJGPP installation directory.\r
+  Unzip the binary distribution running *one* of the following commands::\r
+\r
+    unzip32 rcode37-beta2b.zip      or\r
+    djtarx rcode37-beta2b.zip       or\r
+    pkunzip -d rcode37-beta2b.zip\r
+\r
++ Edit the :file:`djgpp.env` file which is located in the top\r
+  DJGPP installation directory.  Move to the global part of your\r
+  :file:`djgpp.env` and add the following lines::\r
+\r
+    LANG=xx\r
+    LANGUAGE=yy:zz\r
+\r
+  The line must be completely shifted to the left in your\r
+  :file:`djgpp.env` file.  Please note the plus sign at the beginning of\r
+  the line.  This plus sign should *not* be omitted or a lot of shell\r
+  scripts, in this and in other packages, that try to reset this value\r
+  will stop working.  The LANG entry is obligatory, the LANGUAGE entry\r
+  is may be omitted.  The LANGUAGE variable allows you to select an\r
+  alternative catalog than the one stipulated by LANG.  Replace ``xx``,\r
+  ``yy`` and ``zz`` by the language code of the catalogs you want to\r
+  use.\r
+\r
+  Some examples:\r
+\r
+  If you only want to use the catalog containing the translations for\r
+  your mother tongue (in my case the Spanish translations) the above\r
+  lines will only use the LANG variable and will look like::\r
+\r
+    LANG=es\r
+\r
+  If you want to use the Spanish (``es``) and German (``de``) catalogs\r
+  the above lines will look like::\r
+\r
+    LANG=es\r
+    LANGUAGE=es:de\r
+\r
+  In this case a DJGPP binary that has been compiled with NLS support\r
+  will first search for the Spanish translations.  If this translations\r
+  can not be found it will search for the German translations and if\r
+  this can also not been found it will default to the build-in English\r
+  messages.  If you want to reverse this search order the above lines\r
+  would look like this one::\r
+\r
+    LANG=es\r
+    LANGUAGE=de:es\r
+\r
+  Please note that if you omit the LANG environment variable, the\r
+  LANGUAGE variable will not be honored at all.  The LANG variable must\r
+  always be set to your default catalog.  With the aid of LANGUAGE you\r
+  can select other catalogs apart of the default one.  If for some\r
+  reason you want to disable NLS, then you should comment out the LANG\r
+  variable or select ``C`` as your catalog::\r
+\r
+    LANG=C\r
+\r
++ To create an entry for the recode info docs in your :file:`dir` file,\r
+  run from the top DJGPP installation directory the command::\r
+\r
+    install-info --info-dir=./info ./info/recode.info\r
+\r
++ The binaries distributed in this package have NLS support.\r
+  i.e. run the command::\r
+\r
+    recode\r
+\r
+  and the binary should talk to you in your mother tongue, if supported.\r
+  For further information about Recode please read the info docs.\r
+\r
+Building the binaries from sources.\r
+===================================\r
+\r
++ To build the binaries you will need the following binary packages:\r
+  :file:`djdev203.zip` (*not* a prior version),\r
+  :file:`bsh203b.zip` (*not* a prior version),\r
+  :file:`gcc2952b.zip`, :file:`bnu2951b.zip`,\r
+  :file:`mak3791b.zip`, :file:`fil316b.zip`, :file:`shl112b.zip`,\r
+  :file:`txt20b.zip`, :file:`txi40b.zip`, :file:`grep24b.zip`,\r
+  :file:`sed302b.zip`, and :file:`gtxt035b.zip`.\r
+\r
+  If you want to run the check you will need also\r
+  :file:`dif272b.zip`, :file:`m4-14b.zip`, and\r
+  :file:`perl552b.zip`,\r
+\r
+  All these packages can be found in the :file:`v2gnu` directory of any\r
+  Simtel.NET mirror.\r
+\r
+  You will need :file:`bsh203b.zip` and *not* a prior version or\r
+  the build will fail.  The same applies to :file:`djdev203.zip`.\r
+  You *must* use the updated version of :file:`fil316b.zip`\r
+  (date: 2000-05-30) and :file:`shl112b.zip` (date: 2000-08-11).\r
+\r
+  These updated versions have been recompiled with\r
+  :file:`djdev203.zip` and know about the file:`/dev/env`\r
+  functionality introduced with :file:`djdev203.zip`.  All the\r
+  other packages are the ones I have used to build the binaries\r
+  from this sources.  Previous versions of this packages may do\r
+  the job as well but I have not tested this.\r
+\r
++ Create a temporary directory and copy the source package into the dir.\r
+  If you download the source distribution from one of the DJGPP archives,\r
+  just unzip it preserving the directory structure running *ONE* of the\r
+  following commands::\r
+\r
+    unzip32 rcode37-beta2s.zip      or\r
+    djtarx rcode37-beta2s.zip       or\r
+    pkunzip -d rcode37-beta2s.zip\r
+\r
+  Source distributions downloaded from one of the GNU FTP sites need\r
+  some more work to unpack.  First, you *must* use the :code:`djtar`\r
+  program to unzip the package.  That's because some file names in the\r
+  official distributions need to be changed to avoid problems on the\r
+  various platforms supported by DJGPP. :code:`djtar` can rename files\r
+  on the fly given a file with name mappings.  The distribution includes\r
+  a file :file:`djgpp/fnchange.lst` with the necessary mappings.  So you\r
+  need first to retrieve that file, and then invoke :code:`djtar` to\r
+  unpack the distribution.  Here's how::\r
+\r
+    djtar -x -p -o recode-3.7-beta2/djgpp/fnchange.lst recode-3.7-beta2.tar.gz > lst\r
+    djtar -x -n lst recode-3.7-beta2.tar.gz\r
+\r
+  (The name of the distribution archive and the top-level directory will\r
+  be different for versions other than 3.7-beta2.)\r
+\r
++ This package is preconfigured for NLS support and :code:`djdev203`.\r
+  This implies that you *must* install the GNU gettext library\r
+  (:file:`gtxt035b.zip`) if you want to recompile this package.  Of\r
+  course, this must be done *before* you start recompiling the\r
+  package.  The configuration batch file of this package, located in the\r
+  :file:`contrib/DJGPP` directory, allows you to enable or disable NLS\r
+  support and to compile from a different partition than from where the\r
+  sources are located. :file:`configdj.bat` always configures the package\r
+  for NLS support enabled and for in-place compilation if *no* options are\r
+  given at all.  The available NLS options are::\r
+\r
+    NLS\r
+    no-NLS\r
+\r
+  If for some reason you want a binary with no NLS support you will have\r
+  to reconfigure the package.  For this purpose cd into the top srcdir\r
+  (:file:`recode-3.7-beta2/`) and run the following commands::\r
+\r
+    make distclean\r
+    contrib\DJGPP\configdj no-NLS\r
+\r
+  Please note that you *must* use the ``distclean`` option or the\r
+  :file:`config.cache` file will *not* be deleted.  In this case you\r
+  are *not* reconfiguring because the configuration informations\r
+  is read from the cache file instead of being newly computed.  You\r
+  *must* specify ``no-NLS`` or :file:`configdj.bat` will default to\r
+  the ``NLS`` option.  To build the programs in a directory other than\r
+  where the sources are, you must add the parameter that specifies the\r
+  source directory, e.g::\r
+\r
+    x:\src\gnu\recode-3.7-beta2\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2 no-NLS\r
+\r
+  Lets assume you want to build the binaries in a directory placed on a\r
+  different drive (:file:`z:\build` in this case) from where the sources\r
+  are, then you will run the following commands::\r
+\r
+    z:\r
+    md \build\r
+    cd \build\r
+    x:\src\gnu\recode-3.7-beta2/\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2/ no-NLS\r
+\r
+  If you want NLS support, just omit the ``no-NLS`` option or replace\r
+  it by the ``NLS`` option in the above examples.  The order of the NLS\r
+  option and the srcdir option does *not* matter.  You *must* use\r
+  forward slashes to specify the source directory.\r
+\r
+  This batch file will set same environment variables, make MSDOS\r
+  specific modifications to the :file:`Makefile.in`\ s and supply all\r
+  other needed options to the :file:`configure` script.\r
+\r
++ To compile the package run from the top srcdir the command::\r
+\r
+    make\r
+\r
++ Now you can run the tests if you like.  From the top srcdir run\r
+  the command::\r
+\r
+    make check\r
+\r
+  No test should fail.\r
+\r
++ To install the binaries, header, library, catalogs, and info docs\r
+  run the following command from the top srcdir::\r
+\r
+    make install CATALOGS="xx.gmo yy.gmo zz.gmo"\r
+\r
+  This will install the products into your DJGPP installation tree given\r
+  by the default prefix ``/dev/env/DJDIR``.  If you prefer to install\r
+  them into some other directory you will have to set prefix to the\r
+  appropriate value.  Replace ``xx``, ``yy`` and ``zz`` by the language\r
+  codes of the catalogs you want to install.  Example::\r
+\r
+    make install CATALOGS="xx.gmo yy.gmo zz.gmo" prefix=z:/some/other/dir\r
+\r
++ Now you have to set the LANG environment variable.  Please refer to\r
+  the third point in section 2.\r
+\r
+Recoding the :file:`.po` files\r
+==============================\r
+\r
+As told above, the :file:`.po` files of this package have already been\r
+recoded.  The recoding of the :file:`.po` files is one step more of\r
+the configuration process of the package and does usually not need\r
+to be repeated by the user.  This step is performed automatically by\r
+:file:`configdj.bat` running the :file:`recodepo.sh` shell script.  This\r
+shell scripts uses two arguments:\r
+\r
++ the name of the Unix charset that have been used to write the\r
+  :file:`.po` file.  This information is extracted from the :file:`.po`\r
+  file by the shell script itself.\r
+\r
++ The number of the MSDOS code page corresponding to that particular\r
+  :file:`.po` file.  This information is stored in the DosCodePage array\r
+  of the shell script.  The code page numbers have been taken from MS-DOS\r
+  6.22 :file:`COUNTRY.TXT` file and this code pages are the ones installed\r
+  during a standard MSDOS installation process.\r
+\r
+Because this standard code pages have been used to recode the\r
+:file:`.po` files, the distributed ones should fit the requirements of\r
+the majority of the users.  If for some reason this is not true for you,\r
+you will have to recode the :file:`.po` files manually.  This packages\r
+supplies the original (not recoded) :file:`.po` files in the po/po.orig\r
+directory.  Cd into :file:`po/po.orig` and edit the :file:`.po` file you\r
+want to use.  Search for a line that looks like::\r
+\r
+  "Content-Type: text/plain; charset=ISO-8859-1\n"\r
+\r
+The Unix charset used in this particular :file:`.po` file is ISO-8859-1.\r
+If you are using the MSDOS code page 437 you will recode the :file:`.po`\r
+file running the command::\r
+\r
+  recode -Spo ISO-8859-1..cp437 xx.po\r
+\r
+where ``xx`` stands for the language code.\r
+\r
+If you want to recode all :file:`.po` files you will proceed as follows:\r
+\r
++ Cd into the :file:`po` directory.\r
+\r
++ Delete all :file:`.po` files and :file:`stamp-po`.\r
+\r
++ Copy the original :file:`.po` files from :file:`po.orig` directory into the\r
+  :file:`po` directory.\r
+\r
++ Edit :file:`recodepo.sh`.  Search for the DosCodePage array and make the\r
+  appropriate changes.\r
+\r
++ Run the command::\r
+\r
+     sh recodepo.sh\r
+\r
+Send recode specific bug reports to <recode-bugs@iro.umontreal.ca>.\r
+Send suggestions and bug reports concerning the DJGPP port to\r
+``comp.os.msdos.djgpp`` or <djgpp@delorie.com>.\r
+\r
+Enjoy.\r
+\r
diff --git a/contrib/DJGPP/README.in b/contrib/DJGPP/README.in
new file mode 100644 (file)
index 0000000..c900571
--- /dev/null
@@ -0,0 +1,305 @@
+.. role:: code(strong)\r
+.. role:: file(literal)\r
+\r
+========================================\r
+README file for the DJGPP port of Recode\r
+========================================\r
+\r
+.. contents::\r
+.. sectnum::\r
+\r
+:Porter: Juan Manuel Guerrero\r
+:Email: juan.guerrero@gmx.de\r
+\r
+This is a port of Recode to MSDOS/DJGPP.  The instructions given here,\r
+and the port itself, were produced for a pretest yielding to Recode 3.6.\r
+They might need revision or undusting for later Recode versions.\r
+\r
+DJGPP specific changes\r
+======================\r
+\r
+There are no DJGPP specific changes.  The original distribution should\r
+configure and compile out-of-the-box.  If there are last minute DJGPP\r
+specific changes, then they will be documented in the diffs file placed\r
+in the :file:`contrib/DJGPP` subdirectory.  This DJGPP port of recode\r
+@VER@ offers NLS out-of-the-box.\r
+\r
+Installing the binary package\r
+=============================\r
+\r
++ If you are installing Recode on dual DOS/WINDOWS 9X systems, you\r
+  should first turn off the generation of numeric tails for 8.3 aliases\r
+  Windows creates for long file names.  For information about how to do\r
+  this, please read the DJGPP FAQ List V 2.30, chapter 22.19: "How to Set\r
+  Up a Dual DOS/Windows Installation."\r
+\r
+  Please note that you *must* turn off the numeric tail generation\r
+  for short file names during installation of the binary package if you\r
+  want to use the recode program on both DOS box on Win9X *and* plain\r
+  DOS.  If this is not done recode will *not* be able to find the\r
+  :file:`.mo` files (the catalogs containing the translated strings).\r
+  After the installation has been finished you can turn on numeric tail\r
+  generation again if you like.\r
+\r
++ Copy the binary distribution into the top DJGPP installation directory.\r
+  Unzip the binary distribution running *one* of the following commands::\r
+\r
+    unzip32 rcode@packageversion@b.zip      or\r
+    djtarx rcode@packageversion@b.zip       or\r
+    pkunzip -d rcode@packageversion@b.zip\r
+\r
++ Edit the :file:`djgpp.env` file which is located in the top\r
+  DJGPP installation directory.  Move to the global part of your\r
+  :file:`djgpp.env` and add the following lines::\r
+\r
+    LANG=xx\r
+    LANGUAGE=yy:zz\r
+\r
+  The line must be completely shifted to the left in your\r
+  :file:`djgpp.env` file.  Please note the plus sign at the beginning of\r
+  the line.  This plus sign should *not* be omitted or a lot of shell\r
+  scripts, in this and in other packages, that try to reset this value\r
+  will stop working.  The LANG entry is obligatory, the LANGUAGE entry\r
+  is may be omitted.  The LANGUAGE variable allows you to select an\r
+  alternative catalog than the one stipulated by LANG.  Replace ``xx``,\r
+  ``yy`` and ``zz`` by the language code of the catalogs you want to\r
+  use.\r
+\r
+  Some examples:\r
+\r
+  If you only want to use the catalog containing the translations for\r
+  your mother tongue (in my case the Spanish translations) the above\r
+  lines will only use the LANG variable and will look like::\r
+\r
+    LANG=es\r
+\r
+  If you want to use the Spanish (``es``) and German (``de``) catalogs\r
+  the above lines will look like::\r
+\r
+    LANG=es\r
+    LANGUAGE=es:de\r
+\r
+  In this case a DJGPP binary that has been compiled with NLS support\r
+  will first search for the Spanish translations.  If this translations\r
+  can not be found it will search for the German translations and if\r
+  this can also not been found it will default to the build-in English\r
+  messages.  If you want to reverse this search order the above lines\r
+  would look like this one::\r
+\r
+    LANG=es\r
+    LANGUAGE=de:es\r
+\r
+  Please note that if you omit the LANG environment variable, the\r
+  LANGUAGE variable will not be honored at all.  The LANG variable must\r
+  always be set to your default catalog.  With the aid of LANGUAGE you\r
+  can select other catalogs apart of the default one.  If for some\r
+  reason you want to disable NLS, then you should comment out the LANG\r
+  variable or select ``C`` as your catalog::\r
+\r
+    LANG=C\r
+\r
++ To create an entry for the recode info docs in your :file:`dir` file,\r
+  run from the top DJGPP installation directory the command::\r
+\r
+    install-info --info-dir=./info ./info/recode.info\r
+\r
++ The binaries distributed in this package have NLS support.\r
+  i.e. run the command::\r
+\r
+    recode\r
+\r
+  and the binary should talk to you in your mother tongue, if supported.\r
+  For further information about Recode please read the info docs.\r
+\r
+Building the binaries from sources.\r
+===================================\r
+\r
++ To build the binaries you will need the following binary packages:\r
+  :file:`djdev203.zip` (*not* a prior version),\r
+  :file:`bsh203b.zip` (*not* a prior version),\r
+  :file:`gcc2952b.zip`, :file:`bnu2951b.zip`,\r
+  :file:`mak3791b.zip`, :file:`fil316b.zip`, :file:`shl112b.zip`,\r
+  :file:`txt20b.zip`, :file:`txi40b.zip`, :file:`grep24b.zip`,\r
+  :file:`sed302b.zip`, and :file:`gtxt035b.zip`.\r
+\r
+  If you want to run the check you will need also\r
+  :file:`dif272b.zip`, :file:`m4-14b.zip`, and\r
+  :file:`perl552b.zip`,\r
+\r
+  All these packages can be found in the :file:`v2gnu` directory of any\r
+  Simtel.NET mirror.\r
+\r
+  You will need :file:`bsh203b.zip` and *not* a prior version or\r
+  the build will fail.  The same applies to :file:`djdev203.zip`.\r
+  You *must* use the updated version of :file:`fil316b.zip`\r
+  (date: 2000-05-30) and :file:`shl112b.zip` (date: 2000-08-11).\r
+\r
+  These updated versions have been recompiled with\r
+  :file:`djdev203.zip` and know about the file:`/dev/env`\r
+  functionality introduced with :file:`djdev203.zip`.  All the\r
+  other packages are the ones I have used to build the binaries\r
+  from this sources.  Previous versions of this packages may do\r
+  the job as well but I have not tested this.\r
+\r
++ Create a temporary directory and copy the source package into the dir.\r
+  If you download the source distribution from one of the DJGPP archives,\r
+  just unzip it preserving the directory structure running *ONE* of the\r
+  following commands::\r
+\r
+    unzip32 rcode@packageversion@s.zip      or\r
+    djtarx rcode@packageversion@s.zip       or\r
+    pkunzip -d rcode@packageversion@s.zip\r
+\r
+  Source distributions downloaded from one of the GNU FTP sites need\r
+  some more work to unpack.  First, you *must* use the :code:`djtar`\r
+  program to unzip the package.  That's because some file names in the\r
+  official distributions need to be changed to avoid problems on the\r
+  various platforms supported by DJGPP. :code:`djtar` can rename files\r
+  on the fly given a file with name mappings.  The distribution includes\r
+  a file :file:`djgpp/fnchange.lst` with the necessary mappings.  So you\r
+  need first to retrieve that file, and then invoke :code:`djtar` to\r
+  unpack the distribution.  Here's how::\r
+\r
+    djtar -x -p -o @V@/djgpp/fnchange.lst @V@.tar.gz > lst\r
+    djtar -x -n lst @V@.tar.gz\r
+\r
+  (The name of the distribution archive and the top-level directory will\r
+  be different for versions other than @VER@.)\r
+\r
++ This package is preconfigured for NLS support and :code:`djdev203`.\r
+  This implies that you *must* install the GNU gettext library\r
+  (:file:`gtxt035b.zip`) if you want to recompile this package.  Of\r
+  course, this must be done *before* you start recompiling the\r
+  package.  The configuration batch file of this package, located in the\r
+  :file:`contrib/DJGPP` directory, allows you to enable or disable NLS\r
+  support and to compile from a different partition than from where the\r
+  sources are located. :file:`configdj.bat` always configures the package\r
+  for NLS support enabled and for in-place compilation if *no* options are\r
+  given at all.  The available NLS options are::\r
+\r
+    NLS\r
+    no-NLS\r
+\r
+  If for some reason you want a binary with no NLS support you will have\r
+  to reconfigure the package.  For this purpose cd into the top srcdir\r
+  (:file:`recode-@treeversion@/`) and run the following commands::\r
+\r
+    make distclean\r
+    contrib\DJGPP\configdj no-NLS\r
+\r
+  Please note that you *must* use the ``distclean`` option or the\r
+  :file:`config.cache` file will *not* be deleted.  In this case you\r
+  are *not* reconfiguring because the configuration informations\r
+  is read from the cache file instead of being newly computed.  You\r
+  *must* specify ``no-NLS`` or :file:`configdj.bat` will default to\r
+  the ``NLS`` option.  To build the programs in a directory other than\r
+  where the sources are, you must add the parameter that specifies the\r
+  source directory, e.g::\r
+\r
+    x:\src\gnu\recode-@treeversion@\contrib\DJGPP\configdj x:/src/gnu/recode-@treeversion@ no-NLS\r
+\r
+  Lets assume you want to build the binaries in a directory placed on a\r
+  different drive (:file:`z:\build` in this case) from where the sources\r
+  are, then you will run the following commands::\r
+\r
+    z:\r
+    md \build\r
+    cd \build\r
+    x:\src\gnu\recode-@treeversion@/\contrib\DJGPP\configdj x:/src/gnu/recode-@treeversion@/ no-NLS\r
+\r
+  If you want NLS support, just omit the ``no-NLS`` option or replace\r
+  it by the ``NLS`` option in the above examples.  The order of the NLS\r
+  option and the srcdir option does *not* matter.  You *must* use\r
+  forward slashes to specify the source directory.\r
+\r
+  This batch file will set same environment variables, make MSDOS\r
+  specific modifications to the :file:`Makefile.in`\ s and supply all\r
+  other needed options to the :file:`configure` script.\r
+\r
++ To compile the package run from the top srcdir the command::\r
+\r
+    make\r
+\r
++ Now you can run the tests if you like.  From the top srcdir run\r
+  the command::\r
+\r
+    make check\r
+\r
+  No test should fail.\r
+\r
++ To install the binaries, header, library, catalogs, and info docs\r
+  run the following command from the top srcdir::\r
+\r
+    make install CATALOGS="xx.gmo yy.gmo zz.gmo"\r
+\r
+  This will install the products into your DJGPP installation tree given\r
+  by the default prefix ``/dev/env/DJDIR``.  If you prefer to install\r
+  them into some other directory you will have to set prefix to the\r
+  appropriate value.  Replace ``xx``, ``yy`` and ``zz`` by the language\r
+  codes of the catalogs you want to install.  Example::\r
+\r
+    make install CATALOGS="xx.gmo yy.gmo zz.gmo" prefix=z:/some/other/dir\r
+\r
++ Now you have to set the LANG environment variable.  Please refer to\r
+  the third point in section 2.\r
+\r
+Recoding the :file:`.po` files\r
+==============================\r
+\r
+As told above, the :file:`.po` files of this package have already been\r
+recoded.  The recoding of the :file:`.po` files is one step more of\r
+the configuration process of the package and does usually not need\r
+to be repeated by the user.  This step is performed automatically by\r
+:file:`configdj.bat` running the :file:`recodepo.sh` shell script.  This\r
+shell scripts uses two arguments:\r
+\r
++ the name of the Unix charset that have been used to write the\r
+  :file:`.po` file.  This information is extracted from the :file:`.po`\r
+  file by the shell script itself.\r
+\r
++ The number of the MSDOS code page corresponding to that particular\r
+  :file:`.po` file.  This information is stored in the DosCodePage array\r
+  of the shell script.  The code page numbers have been taken from MS-DOS\r
+  6.22 :file:`COUNTRY.TXT` file and this code pages are the ones installed\r
+  during a standard MSDOS installation process.\r
+\r
+Because this standard code pages have been used to recode the\r
+:file:`.po` files, the distributed ones should fit the requirements of\r
+the majority of the users.  If for some reason this is not true for you,\r
+you will have to recode the :file:`.po` files manually.  This packages\r
+supplies the original (not recoded) :file:`.po` files in the po/po.orig\r
+directory.  Cd into :file:`po/po.orig` and edit the :file:`.po` file you\r
+want to use.  Search for a line that looks like::\r
+\r
+  "Content-Type: text/plain; charset=ISO-8859-1\n"\r
+\r
+The Unix charset used in this particular :file:`.po` file is ISO-8859-1.\r
+If you are using the MSDOS code page 437 you will recode the :file:`.po`\r
+file running the command::\r
+\r
+  recode -Spo ISO-8859-1..cp437 xx.po\r
+\r
+where ``xx`` stands for the language code.\r
+\r
+If you want to recode all :file:`.po` files you will proceed as follows:\r
+\r
++ Cd into the :file:`po` directory.\r
+\r
++ Delete all :file:`.po` files and :file:`stamp-po`.\r
+\r
++ Copy the original :file:`.po` files from :file:`po.orig` directory into the\r
+  :file:`po` directory.\r
+\r
++ Edit :file:`recodepo.sh`.  Search for the DosCodePage array and make the\r
+  appropriate changes.\r
+\r
++ Run the command::\r
+\r
+     sh recodepo.sh\r
+\r
+Send recode specific bug reports to <recode-bugs@iro.umontreal.ca>.\r
+Send suggestions and bug reports concerning the DJGPP port to\r
+``comp.os.msdos.djgpp`` or <djgpp@delorie.com>.\r
+\r
+Enjoy.\r
+\r
diff --git a/contrib/DJGPP/config.site b/contrib/DJGPP/config.site
new file mode 100644 (file)
index 0000000..72d186b
--- /dev/null
@@ -0,0 +1,35 @@
+#! /bin/sh\r
+\r
+# This is the config.site file for configuring GNU packages\r
+# which are to be built with DJGPP tools.\r
+\r
+# These two variables are required, otherwise looking for\r
+# programs along the PATH will not work.\r
+PATH_SEPARATOR=:\r
+PATH_EXPAND=y\r
+\r
+# This is required in for "test -f foo" to find foo.exe\r
+export TEST_FINDS_EXE=y\r
+\r
+# The root of the DJGPP tree serves as the default prefix\r
+test "x$prefix" = xNONE && prefix='/dev/env/DJDIR'\r
+\r
+# This is required for config.status script to be run, since\r
+# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh}\r
+CONFIG_SHELL=${CONFIG_SHELL='sh'}\r
+\r
+# These are set here so the generated Makefile's will be good\r
+# for every DJGPP installation, not only the one where the\r
+# package was configured.\r
+# $INSTALL must be an absolute path name, otherwise config.status\r
+# will try to prepend ./ and ../ to it when it goes into subdirs.\r
+INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'}\r
+RANLIB=${RANLIB='ranlib'}\r
+NM=${NM='nm'}\r
+LD=${LD='ld'}\r
+GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'}\r
+MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'}\r
+XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'}\r
+\r
+# Force the test for 'ln -s' to report 'cp -p'.\r
+ac_cv_prog_LN_S='cp -p'\r
diff --git a/contrib/DJGPP/configdj.bat b/contrib/DJGPP/configdj.bat
new file mode 100644 (file)
index 0000000..ff380e2
--- /dev/null
@@ -0,0 +1,220 @@
+@echo off\r
+echo Configuring Free Recode for DJGPP v2.x...\r
+\r
+Rem The SmallEnv tests protect against fixed and too small size\r
+Rem of the environment in stock DOS shell.\r
+\r
+Rem Find out if NLS is wanted or not\r
+Rem and where the sources are.\r
+Rem We always default to NLS support\r
+Rem and to in place configuration.\r
+set NLS=enabled\r
+if not "%NLS%" == "enabled" goto SmallEnv\r
+set XSRC=.\r
+if not "%XSRC%" == "." goto SmallEnv\r
+\r
+Rem This checks the case:\r
+Rem   %1 contains the NLS option.\r
+Rem   %2 contains the src path option.\r
+if "%1" == "" goto InPlace\r
+if "%1" == "NLS" goto SrcDir2\r
+if not "%1" == "no-NLS" goto SrcDir1\r
+set NLS=disabled\r
+if not "%NLS%" == "disabled" goto SmallEnv\r
+:SrcDir2\r
+Rem Find out where the sources are\r
+if "%2" == "" goto InPlace\r
+set XSRC=%2\r
+if not "%XSRC%" == "%2" goto SmallEnv\r
+goto NotInPlace\r
+\r
+Rem This checks the case:\r
+Rem   %1 contains the src path option.\r
+Rem   %2 contains the NLS option.\r
+:SrcDir1\r
+Rem Find out where the sources are\r
+if "%1" == "" goto InPlace\r
+set XSRC=%1\r
+if not "%XSRC%" == "%1" goto SmallEnv\r
+if "%2" == "" goto NotInPlace\r
+if "%2" == "NLS" goto NotInPlace\r
+if not "%2" == "no-NLS" goto NotInPlace\r
+set NLS=disabled\r
+if not "%NLS%" == "disabled" goto SmallEnv\r
+\r
+:NotInPlace\r
+redir -e /dev/null update %XSRC%/configure.orig ./configure\r
+test -f ./configure\r
+if errorlevel 1 update %XSRC%/configure ./configure\r
+\r
+:InPlace\r
+Rem Update configuration files\r
+echo Updating configuration scripts...\r
+test -f ./configure.orig\r
+if errorlevel 1 update configure configure.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed configure.orig > configure\r
+if errorlevel 1 goto SedError\r
+\r
+Rem Make sure they have a config.site file\r
+set CONFIG_SITE=%XSRC%/contrib/DJGPP/config.site\r
+if not "%CONFIG_SITE%" == "%XSRC%/contrib/DJGPP/config.site" goto SmallEnv\r
+\r
+Rem Make sure crucial file names are not munged by unpacking\r
+test -f %XSRC%/config.h.in\r
+if not errorlevel 1 mv -f %XSRC%/config.h.in %XSRC%/config.h-in\r
+\r
+test -f %XSRC%/stamp-djgppfixes\r
+if not errorlevel 1 goto PackageFixed\r
+\r
+Rem Fix libiconv/Makefile.in and src/Makefile.in\r
+Rem to reflect the new directory structure.\r
+test -f %XSRC%/libiconv/Makefile.orig\r
+if errorlevel 1 update %XSRC%/libiconv/Makefile.in %XSRC%/libiconv/Makefile.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/Makefile.orig > Makefile.tmp\r
+if errorlevel 1 goto SedError\r
+update Makefile.tmp %XSRC%/libiconv/Makefile.in\r
+rm Makefile.tmp\r
+test -f %XSRC%/src/Makefile.orig\r
+if errorlevel 1 update %XSRC%/src/Makefile.in %XSRC%/src/Makefile.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/src/Makefile.orig > Makefile.tmp\r
+if errorlevel 1 goto SedError\r
+update Makefile.tmp %XSRC%/src/Makefile.in\r
+rm Makefile.tmp\r
+\r
+Rem Fix the source files in libiconv to reflect the new directory structure.\r
+test -f %XSRC%/src/iconv.orig\r
+if errorlevel 1 update %XSRC%/src/iconv.c %XSRC%/src/iconv.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/src/iconv.orig > iconv.tmp\r
+if errorlevel 1 goto SedError\r
+update iconv.tmp %XSRC%/src/iconv.c\r
+rm iconv.tmp\r
+test -f %XSRC%/libiconv/converters.orig\r
+if errorlevel 1 update %XSRC%/libiconv/converters.h %XSRC%/libiconv/converters.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/converters.orig > converters.tmp\r
+if errorlevel 1 goto SedError\r
+update converters.tmp %XSRC%/libiconv/converters.h\r
+rm converters.tmp\r
+test -f %XSRC%/libiconv/cns/11643.orig\r
+if errorlevel 1 update %XSRC%/libiconv/cns/11643.h %XSRC%/libiconv/cns/11643.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/cns/11643.orig > 11643.tmp\r
+if errorlevel 1 goto SedError\r
+update 11643.tmp %XSRC%/libiconv/cns/11643.h\r
+rm 11643.tmp\r
+test -f %XSRC%/libiconv/iso/ir165.orig\r
+if errorlevel 1 update %XSRC%/libiconv/iso/ir165.h %XSRC%/libiconv/iso/ir165.orig\r
+sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/iso/ir165.orig > ir165.tmp\r
+if errorlevel 1 goto SedError\r
+update ir165.tmp %XSRC%/libiconv/iso/ir165.h\r
+rm ir165.tmp\r
+\r
+Rem Let libtool use _libs all the time.\r
+test -f %XSRC%/ltconfig.orig\r
+if errorlevel 1 update %XSRC%/ltconfig %XSRC%/ltconfig.orig\r
+sed "/objdir=/s|\.libs|_libs|" %XSRC%/ltconfig.orig > ltconfig.tmp\r
+if errorlevel 1 goto SedError\r
+update ltconfig.tmp %XSRC%/ltconfig\r
+rm ltconfig.tmp\r
+\r
+touch %XSRC%/stamp-djgppfixes\r
+:PackageFixed\r
+\r
+Rem This is required because DOS/Windows are case-insensitive\r
+Rem to file names, and "make install" will do nothing if Make\r
+Rem finds a file called `install'.\r
+if exist INSTALL ren INSTALL INSTALL.txt\r
+\r
+Rem Set HOSTNAME so it shows in config.status\r
+if not "%HOSTNAME%" == "" goto hostdone\r
+if "%windir%" == "" goto msdos\r
+set OS=MS-Windows\r
+if not "%OS%" == "MS-Windows" goto SmallEnv\r
+goto haveos\r
+:msdos\r
+set OS=MS-DOS\r
+if not "%OS%" == "MS-DOS" goto SmallEnv\r
+:haveos\r
+if not "%USERNAME%" == "" goto haveuname\r
+if not "%USER%" == "" goto haveuser\r
+echo No USERNAME and no USER found in the environment, using default values\r
+set HOSTNAME=Unknown PC\r
+if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv\r
+goto userdone\r
+:haveuser\r
+set HOSTNAME=%USER%'s PC\r
+if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv\r
+goto userdone\r
+:haveuname\r
+set HOSTNAME=%USERNAME%'s PC\r
+if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv\r
+:userdone\r
+set _HOSTNAME=%HOSTNAME%, %OS%\r
+if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv\r
+set HOSTNAME=%_HOSTNAME%\r
+:hostdone\r
+set _HOSTNAME=\r
+set OS=\r
+\r
+Rem install-sh is required by the configure script but clashes with the\r
+Rem various Makefile install-foo targets, so we MUST have it before the\r
+Rem script runs and rename it afterwards\r
+test -f %XSRC%/install-sh\r
+if not errorlevel 1 goto NoRen0\r
+test -f %XSRC%/install-sh.sh\r
+if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh\r
+:NoRen0\r
+\r
+if "%NLS%" == "disabled" goto WithoutNLS\r
+\r
+Rem If NLS is wanted we will probably have to\r
+Rem recode the .po files. For these purpose\r
+Rem we will run recodepo.sh that will check for\r
+Rem needed libs, headers and binaries and return\r
+Rem with one of the following return codes:\r
+Rem errorlevel 2 : package has no po directory (no NLS support)\r
+Rem                and will be configured with --disable-nls.\r
+Rem errorlevel 1 : recode, msgfmt and/or xgettext can not be found,\r
+Rem                package will be configured with --disable-nls.\r
+Rem errorlevel 0 : .po files have/have not been recoded. They will\r
+Rem                be recoded by recodepo.sh if needed, and the\r
+Rem                package will be configured with --enable-nls.\r
+sh %XSRC%/contrib/DJGPP/recodepo.sh\r
+if errorlevel 1 goto WithoutNLS\r
+\r
+:WithNLS\r
+Rem We prefer without-included-gettext because libintl.a from gettext package\r
+Rem is the only one that is garanteed to have been ported to DJGPP.\r
+echo Running the ./configure script...\r
+sh ./configure --src=%XSRC% --enable-nls --without-included-gettext\r
+if errorlevel 1 goto CfgError\r
+echo Done.\r
+goto End\r
+\r
+:WithoutNLS\r
+echo Running the ./configure script...\r
+sh ./configure --src=%XSRC% --disable-nls\r
+if errorlevel 1 goto CfgError\r
+echo Done.\r
+goto End\r
+\r
+:SedError\r
+echo ./configure script editing failed!\r
+goto End\r
+\r
+:CfgError\r
+echo ./configure script exited abnormally!\r
+goto End\r
+\r
+:SmallEnv\r
+echo Your environment size is too small.  Enlarge it and run me again.\r
+echo Configuration NOT done!\r
+\r
+:End\r
+test -f %XSRC%/install-sh.sh\r
+if not errorlevel 1 goto NoRen1\r
+test -f %XSRC%/install-sh\r
+if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh\r
+:NoRen1\r
+set CONFIG_SITE=\r
+set HOSTNAME=\r
+set NLS=\r
+set XSRC=\r
diff --git a/contrib/DJGPP/configdj.sed b/contrib/DJGPP/configdj.sed
new file mode 100644 (file)
index 0000000..31019c7
--- /dev/null
@@ -0,0 +1,138 @@
+# Additional editing of Makefiles and atconfig\r
+/ac_given_INSTALL=/,/^CEOF/ {\r
+  /^CEOF$/ i\\r
+# DJGPP specific Makefile changes.\\r
+  /^aliaspath *        *=/s,:,";",g\\r
+  /TEXINPUTS=/s,:,";",g\\r
+  /PATH=/s,:,";",g\\r
+  s,\\.new\\.,_new.,g\\r
+  s,\\.old\\.,_old.,g\\r
+  s,config\\.h\\.in,config.h-in,g\\r
+  /^install-info-am:/,/^$/ {\\r
+    /@list=/ s,\\\$(INFO_DEPS),& recode.i,\\r
+    /@for *file/ s,\\\$(INFO_DEPS),& recode.i,\\r
+    s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\\r
+  }\r
+}\r
+\r
+# Rename config.h.in into config.h-in.\r
+/^ *CONFIG_HEADERS=/,/^EOF/ {\r
+  s|config\.h|&:config.h-in|\r
+}\r
+\r
+# Replace (command) > /dev/null with `command > /dev/null`, since\r
+# parenthesized commands always return zero status in the ported Bash,\r
+# even if the named command doesn't exist\r
+/if ([^|;]*null/{\r
+  s,(,`,\r
+  s,),,\r
+  s,;  *then,`; then,\r
+}\r
+\r
+# DOS-style absolute file names should be supported as well\r
+/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,\r
+/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,\r
+/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,\r
+\r
+# Switch the order of the two Sed commands, since DOS path names\r
+# could include a colon\r
+/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,\r
+\r
+# Prevent the spliting of conftest.subs.\r
+# The sed script: conftest.subs is split into 48 or 90 lines long files.\r
+# This will produce sed scripts called conftest.s1, conftest.s2, etc.\r
+# that will not work if conftest.subs contains a multi line sed command\r
+# at line #90. In this case the first part of the sed command will be the\r
+# last line of conftest.s1 and the rest of the command will be the first lines\r
+# of conftest.s2. So both script will not work properly.\r
+# This matches the configure script produced by Autoconf 2.12\r
+/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,\r
+# This matches the configure script produced by Autoconf 2.14a\r
+/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,\r
+\r
+# gettext.m4 (serial 5) from GNU gettext 0.10.35 has a bug.\r
+# When the package is configured with --without-included-gettext option\r
+# and the system libintl.a is found then the LIBS variable *MUST* be set to -lintl\r
+# so that this one is used for linking.\r
+/echo.*\$gt_cv_func_gettext_libintl/,/^EOF$/ {\r
+  /^fi$/ a\\r
+            if test "$gt_cv_func_gettext_libintl" = yes; then\\r
+              LIBS="$LIBS -lintl"\\r
+            fi\r
+}\r
+\r
+# We prefer gettext__ instead of gettext.\r
+/checking for gettext in /,/^EOF$/ s,gettext[  ]*(,gettext__(,g\r
+\r
+# The following two items are changes needed for configuring\r
+# and compiling across partitions.\r
+# 1) The given srcdir value is always translated from the\r
+#    "x:" syntax into "/dev/x" syntax while we run configure.\r
+/^[    ]*-srcdir=\*.*$/ a\\r
+    ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`\r
+/set X `ls -Lt \$srcdir/ i\\r
+   if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\\r
+     srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\\r
+   fi\r
+\r
+#  2) We need links across partitions, so we will use "cp -pf" instead of "ln".\r
+/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {\r
+  s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,\r
+}\r
+\r
+# Fixes for libiconv/Makefile.in and src/Makefile.in\r
+# due to filename renaming in libiconv/ subdir.\r
+/^EXTRA_DIST[  ]*=/ {\r
+  s|encodings\.def|encodings/&|\r
+  s|encodings_aix\.def|encodings/aix.def|\r
+  s|encodings_dos\.def|encodings/dos.def|\r
+  s|encodings_osf1\.def|encodings/osf1.def|\r
+  s|encodings_local\.def|encodings/local.def|\r
+}\r
+/^noinst_HEADERS[      ]*=/ {\r
+  s|aliases\.h|aliases/&|\r
+  s|aliases_aix\.h|aliases/aix.h|\r
+  s|aliases_dos\.h|aliases/dos.h|\r
+  s|aliases_osf1\.h|aliases/osf1.h|\r
+  s|aliases_local\.h|aliases/local.h|\r
+  s|cns|&/|g\r
+  s|iso|&/|g\r
+  s|georgian_|georgian/|g\r
+  s|mac_|mac/|g\r
+}\r
+/\/libiconv\// {\r
+  s|cns|&/|g\r
+  s|iso|&/|g\r
+  s|georgian_|georgian/|g\r
+  s|mac_|mac/|g\r
+  s|aliases\.h|aliases/&|g\r
+  s|aliases_aix\.h|aliases/aix.h|g\r
+  s|aliases_dos\.h|aliases/dos.h|g\r
+  s|aliases_osf1\.h|aliases/osf1.h|g\r
+  s|aliases_local\.h|aliases/local.h|g\r
+  s|encodings\.def|encodings/&|g\r
+  s|encodings_aix\.def|encodings/aix.def|g\r
+  s|encodings_dos\.def|encodings/dos.def|g\r
+  s|encodings_osf1\.def|encodings/osf1.def|g\r
+  s|encodings_local\.def|encodings/local.def|g\r
+}\r
+\r
+# Fixes for lib/iconv.c.\r
+# All encodings and aliases files recide in their respective subdirs now.\r
+/^#[   ]*include/ s|"encodings\.def|"encodings/encodings.def|\r
+/^#[   ]*include/ s|"encodings_aix\.def|"encodings/aix.def|\r
+/^#[   ]*include/ s|"encodings_dos\.def|"encodings/dos.def|\r
+/^#[   ]*include/ s|"encodings_osf1\.def|"encodings/osf1.def|\r
+/^#[   ]*include/ s|"encodings_local\.def|"encodings/local.def|\r
+/^#[   ]*include/ s|"aliases\.h|"aliases/aliases.h|\r
+/^#[   ]*include/ s|"aliases_aix\.h|"aliases/aix.h|\r
+/^#[   ]*include/ s|"aliases_dos\.h|"aliases/dos.h|\r
+/^#[   ]*include/ s|"aliases_osf1\.h|"aliases/osf1.h|\r
+/^#[   ]*include/ s|"aliases_local\.h|"aliases/local.h|\r
+\r
+# Fixes for lib/converters\.h.\r
+# All cns, iso, georgian and mac files recide in their respective subdirs now.\r
+/^#[   ]*include/ s|"cns|&/|\r
+/^#[   ]*include/ s|"iso|&/|\r
+/^#[   ]*include/ s|"georgian_|"georgian/|\r
+/^#[   ]*include/ s|"mac_|"mac/|\r
diff --git a/contrib/DJGPP/fnchange.in b/contrib/DJGPP/fnchange.in
new file mode 100644 (file)
index 0000000..f20884c
--- /dev/null
@@ -0,0 +1 @@
+@V@/config.h.in                  @V@/config.h-in\r
diff --git a/contrib/DJGPP/fnchange.lst b/contrib/DJGPP/fnchange.lst
new file mode 100644 (file)
index 0000000..aabae66
--- /dev/null
@@ -0,0 +1 @@
+recode-3.7-beta2/config.h.in                  recode-3.7-beta2/config.h-in\r
index d50570a2e9aa559ee713d0dbf56b845f3157e740..e527dc01f2a1fc350e5bdd2fa0a605a395198b33 100644 (file)
 
 AUTOMAKE_OPTIONS = gnits
 
-AMIGA_PORT = lib-Makefile.Amiga src-Makefile.Amiga
-DJGPP_PORT = djgpp-README djgpp-diffs
+AMIGA_PORT = Amiga/lib-Makefile Amiga/src-Makefile
+DJGPP_PORT = DJGPP/README.in DJGPP/config.site DJGPP/configdj.bat \
+DJGPP/configdj.sed DJGPP/DJGPP/README DJGPP/recodepo.sh
 ELISP_FILES = recode.el utf8.el
+SPEC_FILES = recode.spec1 recode.spec2
 
-EXTRA_DIST = $(AMIGA_PORT) $(DJGPP_PORT) $(ELISP_FILES) \
-recode.spec1 recode.spec2
+EXTRA_DIST = $(AMIGA_PORT) $(DJGPP_PORT) $(ELISP_FILES) $(SPEC_FILES)
+
+MAINTAINERCLEANFILES = DJGPP/README DJGPP/fnchange.lst
+
+all-local: DJGPP/README DJGPP/fnchange.lst
+
+$(srcdir)/DJGPP/README: DJGPP/README.in $(top_srcdir)/configure.ac
+       packageversion=`echo "$(VERSION)" | sed 's/\.//g'`; \
+       sed \
+           -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \
+           -e 's/@VER@/$(VERSION)/g' \
+           -e "s/@packageversion@/$$packageversion/g" \
+           -e "s/@treeversion@/$(VERSION)/g" \
+         $(srcdir)/DJGPP/README.in > $@-tmp
+       mv $@-tmp $@
+
+$(srcdir)/DJGPP/fnchange.lst: DJGPP/fnchange.in $(top_srcdir)/configure.ac
+       sed \
+           -e '/^#/d' \
+           -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \
+         $(srcdir)/DJGPP/fnchange.in > $@-tmp
+       mv $@-tmp $@
index bf7991578204ee0244943b9ec70fcc953a04d81d..211c46f1d2a981c302de23b30eb89b3cfd7278a3 100644 (file)
@@ -197,12 +197,14 @@ target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 AUTOMAKE_OPTIONS = gnits
-AMIGA_PORT = lib-Makefile.Amiga src-Makefile.Amiga
-DJGPP_PORT = djgpp-README djgpp-diffs
-ELISP_FILES = recode.el utf8.el
-EXTRA_DIST = $(AMIGA_PORT) $(DJGPP_PORT) $(ELISP_FILES) \
-recode.spec1 recode.spec2
+AMIGA_PORT = Amiga/lib-Makefile Amiga/src-Makefile
+DJGPP_PORT = DJGPP/README.in DJGPP/config.site DJGPP/configdj.bat \
+DJGPP/configdj.sed DJGPP/DJGPP/README DJGPP/recodepo.sh
 
+ELISP_FILES = recode.el utf8.el
+SPEC_FILES = recode.spec1 recode.spec2
+EXTRA_DIST = $(AMIGA_PORT) $(DJGPP_PORT) $(ELISP_FILES) $(SPEC_FILES)
+MAINTAINERCLEANFILES = DJGPP/README DJGPP/fnchange.lst
 all: all-am
 
 .SUFFIXES:
@@ -276,7 +278,7 @@ distdir: $(DISTFILES)
        done
 check-am: all-am
 check: check-am
-all-am: Makefile
+all-am: Makefile all-local
 installdirs:
 install: install-am
 install-exec: install-exec-am
@@ -302,6 +304,7 @@ distclean-generic:
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
 clean: clean-am
 
 clean-am: clean-generic clean-libtool mostlyclean-am
@@ -358,17 +361,37 @@ uninstall-am:
 
 .MAKE: install-am install-strip
 
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
-       distclean distclean-generic distclean-libtool distdir dvi \
-       dvi-am html html-am info info-am install install-am \
-       install-data install-data-am install-dvi install-dvi-am \
-       install-exec install-exec-am install-html install-html-am \
-       install-info install-info-am install-man install-pdf \
-       install-pdf-am install-ps install-ps-am install-strip \
-       installcheck installcheck-am installdirs maintainer-clean \
-       maintainer-clean-generic mostlyclean mostlyclean-generic \
-       mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
-
+.PHONY: all all-am all-local check check-am clean clean-generic \
+       clean-libtool distclean distclean-generic distclean-libtool \
+       distdir dvi dvi-am html html-am info info-am install \
+       install-am install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+       uninstall uninstall-am
+
+
+all-local: DJGPP/README DJGPP/fnchange.lst
+
+$(srcdir)/DJGPP/README: DJGPP/README.in $(top_srcdir)/configure.ac
+       packageversion=`echo "$(VERSION)" | sed 's/\.//g'`; \
+       sed \
+           -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \
+           -e 's/@VER@/$(VERSION)/g' \
+           -e "s/@packageversion@/$$packageversion/g" \
+           -e "s/@treeversion@/$(VERSION)/g" \
+         $(srcdir)/DJGPP/README.in > $@-tmp
+       mv $@-tmp $@
+
+$(srcdir)/DJGPP/fnchange.lst: DJGPP/fnchange.in $(top_srcdir)/configure.ac
+       sed \
+           -e '/^#/d' \
+           -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \
+         $(srcdir)/DJGPP/fnchange.in > $@-tmp
+       mv $@-tmp $@
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index 6f0cea2c0fef1cc983d3db5ec72912a71f9dc5fa..0ae547190ae9c71d9be8d2e66322c6ee40cf9d28 100644 (file)
@@ -28,47 +28,56 @@ as the things you usually get from the Free Software Foundation.
 Please drop me a note about what you found to be useful, in here, to
 help me at deciding what should be kept and what should go away.
 
-+ :file:`utf8.el`
++ Emacs Lisp files
 
-  This tool helps Emacs users at inserting UTF-8 encoded ISO-10646 or
-  Unicode characters in an Emacs buffer.  Submitted by Gary Houston
-  <ghouston@actrix.gen.nz> to :code:`gnu.emacs.sources`, 1994-10.
+  + :file:`utf8.el`
 
-+ :file:`recode.el`
+    This tool helps Emacs users at inserting UTF-8 encoded ISO-10646 or
+    Unicode characters in an Emacs buffer.  Submitted by Gary Houston
+    <ghouston@actrix.gen.nz> to :code:`gnu.emacs.sources`, 1994-10.
 
-  This is a miscellaneous collection of tools, documented in French,
-  for using Recode from Emacs, when Latin-1 is in use.  Submitted by
-  François Pinard <pinard@iro.umontreal.ca>, 1994-12.
+  + :file:`recode.el`
 
-+ :file:`djgpp-README`
-+ :file:`djgpp-diffs`
+    This is a miscellaneous collection of tools, documented in French,
+    for using Recode from Emacs, when Latin-1 is in use.  Submitted by
+    François Pinard <pinard@iro.umontreal.ca>, 1994-12.
 
-  These files represent a port of version 3.4.1 of Recode to DJGPP,
-  submitted by Wojciech Galazka <wgalazka@chem.uw.edu.pl>, 1997-11.
++ RPM spec files
 
-+ :file:`Makefile.amiga`
-+ :file:`Makefile.amiga-lib`
+  + :file:`recode.spec1`
 
-  These makefiles allow building Recode 3.4k on Amiga.  Submitted by
-  Stefan Haubenthal, 1998-11.
+    RPM spec file to prepare Recode 3.5c on RedHat.  Submitted by David
+    Lebel, 2000-06.
 
-+ :file:`recode.spec1`
+  + :file:`recode.spec2`
 
-  RPM spec file to prepare Recode 3.5c on RedHat.  Submitted by David
-  Lebel, 2000-06.
+    RPM spec file to prepare Recode 3.5d on RedHat.  Submitted by Bennett
+    Todd, 2002-01.  Bennett writes (more or less):
 
-+ :file:`recode.spec2`
+      This spec file allows portable building.  Users could download the
+      tar archive and simply ``rpm -ta`` it to build themselves source and
+      binary :code:`rpm`\ s.  If they had their :code:`rpm` directory,
+      they could even do it while not being ``root``.  For example, my
+      :file:`~/.rpmmacros` reads::
 
-  RPM spec file to prepare Recode 3.5d on RedHat.  Submitted by Bennett
-  Todd, 2002-01.  Bennett writes (more or less):
+        %_topdir    /home/bet/rpm
 
-    This spec file allows portable building.  Users could download the
-    tar archive and simply ``rpm -ta`` it to build themselves source and
-    binary :code:`rpm`\ s.  If they had their :code:`rpm` directory,
-    they could even do it while not being ``root``.  For example, my
-    :file:`~/.rpmmacros` reads::
+      without a leading tab. Hence my :file:`/usr/src/redhat/` is still
+      ``root:root``, and yet I can do my :code:`rpm` building as myself.
 
-      %_topdir    /home/bet/rpm
++ Amiga port
 
-    without a leading tab. Hence my :file:`/usr/src/redhat/` is still
-    ``root:root``, and yet I can do my :code:`rpm` building as myself.
+  Files in the :file:`Amiga/` directory should allow building Recode on
+  Amiga.  Submitted by Stefan Haubenthal, 1998-11, for version 3.4k.
+
++ DJGPP port
+
+  Files in the :file:`DJGPP/` directory should allow building
+  Recode on MSDOS/DJGPP.  Submitted by Juan Manuel Guerrero
+  <juan.guerrero@gmx.de>, 2001-03, for a pretest towards version 3.6.
+  For this port, there is a `README`__ file.
+
+  __ /DJGPP.html
+
+  For the record, a previous port was submitted by Wojciech Galazka
+  <wgalazka@chem.uw.edu.pl>, 1997-11, for version 3.4.1.
diff --git a/contrib/djgpp-README b/contrib/djgpp-README
deleted file mode 100644 (file)
index a6846f2..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-This is a port of Recode 3.4 to MSDOS/DJGPP.
-
-Installation
-============
-
-Just unzip the binary distribution from the top DJGPP installation
-directory, If you aren't familiar with the package, read the info docs.
-If you run the programs from plain DOS (not Windows), you will need
-to install a DPMI host.  A free DPMI host is available as csdpmi3b.zip
-from the peer directory ../v2misc at the same place you got the recode
-package from.  Note that the man pages are not included in the binary
-distribution, since they are no longer maintained by the GNU project;
-use the Info documentation instead.
-
-Features
-========
-
-This package has already been ported to the MSODS environment with Borland
-Turbo C as the target compiler.  This made the porting process to DJGPP
-extremely simple.
-
-The file DIFFS in the source distribution describes the changes against
-the original package.
-
-The GNU Gettext package is supported in the ported version, so you could
-expect the programs to talk to you in any language not just English.
-
-Required tools
-==============
-
-If you want to recompile the package, you will need the DJGPP development
-environment (GCC, header files and the libraries) and DJGPP ports of the
-following tools:
-
-       - GNU Make 3.75 or later
-       - Bash (or some other Unix-like shell)
-       - GNU Sed
-       - GNU Fileutils
-       - GNU Textutils
-       - GNU Sh-utils
-       - GNU Grep (only if you need to run DJGPP\CONFIG.BAT)
-       - GNU Diffutils (only if you run the test suite)
-       - Perl (only if you need to change the test scripts)
-
-These should be available from the DJGPP sites.  There are a few more
-programs invoked during the build process, but they are all part of a
-standard DJGPP installation and should be already installed on your system.
-
-The package should be built with the latest port of Make 3.75.  Previous
-versions of Make ported to DJGPP didn't support Unix shells, and the
-Makefiles for this package won't work without a Unix shell.
-
-
-How to build
-============
-
-Unzip the distribution.  The package is already configured for DJGPP
-v2.01, so if you only want to compile it, just call BUILD.BAT from the
-main subdirectory:
-
-               build
-
-This invokes Make.  When Make finishes, you can install the package:
-
-               make install
-
-If you make a change in some of the programs, it is a good idea to run
-the test suite, so you know you didn't break anything:
-
-               make check
-
-This will run for a while and should print 'All checks completed
-successfully' after all tests have been performed.
-
-If you build Recode with DJGPP release other than 2.01, or if you want
-to change the configuration options (e.g. add National Language Support
-once it becomes available), you will have to reconfigure the package.
-The CONFIG.BAT batch file sets a few environment variables, then calls
-BASH to run the configure script, so you should run CONFIG.BAT, then make:
-
-               config
-               make
-
-The configure script run by CONFIG.BAT supports a few options.  Run "sh
-./configure --help" to see all the options recognized by the script.
-
-
-How to patch the original source
-================================
-
-You need the original sources of the Recode-3.4.1 package.  Ungzip
-and untar the sources, they'll be located in the directory named
-'recode-3.4.1'.  Change the name of that directory to 'recode.341',
-and create and empty directory named 'recode-3.4.1'.  In the parent
-directory place the files 'update.bat' and 'diffs'.  Run update bat,
-this will patch the original sources now located in 'recode.341'
-producing ready to compile sources.  Remove files, whose names start
-with '`' and delete the 'recode-3.4.1' direcory.
-
-
-Example of use
-==============
-
-To figure it out how to use Recode a sample PLCONV.BAT file is provided.
-This file shows how to convert a file from IBM 852 code page to ISO 8859-2
-code page.  Further details could be found in the Info documentation file.
-
-               Enjoy,
-
-       Wojciech Galazka <wgalazka@chem.uw.edu.pl>
-
-Based on the original text by Eli Zaretskii <eliz@is.elta.co.il>
diff --git a/contrib/djgpp-diffs b/contrib/djgpp-diffs
deleted file mode 100644 (file)
index 2ce6693..0000000
+++ /dev/null
@@ -1,308 +0,0 @@
-diff -urN recode-3.4.1-orig/Makefile.in recode.341/Makefile.in
---- recode-3.4.1-orig/Makefile.in      Thu Dec  1 16:41:54 1994
-+++ recode.341/Makefile.in     Sat Sep 20 10:22:50 1997
-@@ -107,7 +107,7 @@
- DISTFILES = \
- README AUTHORS BACKLOG COPYING INSTALL LOCALE NEWS THANKS TODO ChangeLog \
- Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
--config.h.in configure stamp-h.in \
-+config.h-in configure stamp-h.in \
- recode.texi texinfo.tex stamp-vti version.texi charset.texi recode.info \
- ansi2knr.c ansi2knr.1 c-boxes.el mergelex.awk \
- $(HEADERS) $(SOURCES) $(LIBHDRS) $(LIBSRCS) checkit File-Latin1 \
-@@ -224,7 +224,7 @@
- install: all
-       $(srcdir)/mkinstalldirs $(bindir) $(infodir)
--      $(INSTALL_DATA) $(srcdir)/recode.info $(infodir)/recode.info
-+      $(INSTALL_DATA) $(srcdir)/recode.info $(infodir)/recode.inf
-       $(INSTALL_PROGRAM) recode $(bindir)/`echo recode | sed '$(transform)'`
-       for name in $(CATALOGS); do \
-         lang=`echo $$name | sed 's/.msg$$//'`; \
-@@ -234,7 +234,7 @@
-       done
- uninstall:
--      rm -f $(infodir)/recode.info
-+      rm -f $(infodir)/recode.inf
-       rm -f $(bindir)/`echo recode | sed '$(transform)'`
-       for name in $(CATALOGS); do \
-         lang=`echo $$name | sed 's/.msg$$//'`; \
-@@ -248,11 +248,12 @@
- mostlyclean:
-       rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
--      rm -f *.a *.o *._c *._o core core.*
-+      rm -f *.exe *.a *.o *._c *._o core core.*
-       rm -f *.tmp yy.tab.*
- clean: mostlyclean
-       rm -f recode
-+      rm -f recode.exe
- distclean: clean
-       rm -f ansi2knr
-@@ -328,10 +329,10 @@
-       cd $(srcdir) && autoconf
- config.h: stamp-h
--stamp-h: config.h.in config.status
-+stamp-h: config.h-in config.status
-       CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
-       date > stamp-h
--config.h.in: stamp-h.in
-+config.h-in: stamp-h.in
- stamp-h.in: configure.in aclocal.m4 acconfig.h
-       cd $(srcdir) && autoheader
-       date > $(srcdir)/stamp-h.in
-diff -urN recode-3.4.1-orig/build.bat recode.341/build.bat
---- recode-3.4.1-orig/build.bat        Thu Jan  1 00:00:00 1970
-+++ recode.341/build.bat       Sat May 24 21:27:24 1997
-@@ -0,0 +1,2 @@
-+@echo off
-+make
-diff -urN recode-3.4.1-orig/checkit.bat recode.341/checkit.bat
---- recode-3.4.1-orig/checkit.bat      Thu Jan  1 00:00:00 1970
-+++ recode.341/checkit.bat     Tue Sep 16 19:59:18 1997
-@@ -0,0 +1 @@
-+bash ./checkit %1 %2 %3 %4 %5
-diff -urN recode-3.4.1-orig/config.bat recode.341/config.bat
---- recode-3.4.1-orig/config.bat       Thu Jan  1 00:00:00 1970
-+++ recode.341/config.bat      Sat Sep 20 11:34:22 1997
-@@ -0,0 +1,41 @@
-+@echo off
-+set CC=gcc
-+set SYSROOT=c:
-+set PATH_SEPARATOR=:
-+set PATH_EXPAND=y
-+if not "%HOSTNAME%" == "" goto hostdone
-+if "%windir%" == "" goto msdos
-+set OS=MS-Windows
-+goto haveos
-+:msdos
-+set OS=DOS
-+:haveos
-+if not "%USERNAME%" == "" goto haveuname
-+if not "%USER%" == "" goto haveuser
-+echo No USERNAME and no USER found in the environment, using default values
-+set HOSTNAME=Unknown PC
-+:haveuser
-+set HOSTNAME=%USER%'s PC
-+goto userdone
-+:haveuname
-+set HOSTNAME=%USERNAME%'s PC
-+:userdone
-+set HOSTNAME=%HOSTNAME%, %OS%
-+:hostdone
-+set CONFIG_SHELL=bash.exe
-+set INSTALL='${DJDIR}'/bin/ginstall -c
-+if not exist configure.orig cp -f configure configure.orig
-+bash ./configure --prefix='$(DJDIR)' 
-+echo updating config.h and Makefiles for DJGPP...
-+mv -f config.h config.tmp
-+sed -f config.sed config.tmp > config.h
-+touch config.h -r config.tmp
-+rm -f config.tmp
-+mv -f config.h config.tmp
-+sed -e 's/#define HAVE_PIPE 1/\/* #define HAVE_PIPE 0 *\//g' config.tmp > config.h
-+touch config.h -r config.tmp
-+rm -f config.tmp
-+mv -f Makefile Makefile.tmp
-+sed -e 's/config\.h\.in/config.h-in/g' Makefile.tmp > Makefile
-+touch Makefile -r Makefile.tmp
-+rm -f Makefile.tmp
-diff -urN recode-3.4.1-orig/config.h-in recode.341/config.h-in
---- recode-3.4.1-orig/config.h-in      Thu Jan  1 00:00:00 1970
-+++ recode.341/config.h-in     Thu Dec  1 15:10:18 1994
-@@ -0,0 +1,76 @@
-+/* config.h.in.  Generated automatically from configure.in by autoheader.  */
-+
-+/* Define if on AIX 3.
-+   System headers sometimes define this.
-+   We just want to avoid a redefinition error message.  */
-+#ifndef _ALL_SOURCE
-+#undef _ALL_SOURCE
-+#endif
-+
-+/* Define to empty if the keyword does not work.  */
-+#undef const
-+
-+/* Define if you don't have vprintf but do have _doprnt.  */
-+#undef HAVE_DOPRNT
-+
-+/* Define if you have the vprintf function.  */
-+#undef HAVE_VPRINTF
-+
-+/* Define if on MINIX.  */
-+#undef _MINIX
-+
-+/* Define if the system does not provide POSIX.1 features except
-+   with this defined.  */
-+#undef _POSIX_1_SOURCE
-+
-+/* Define if you need to in order for stat and other things to work.  */
-+#undef _POSIX_SOURCE
-+
-+/* Define as the return type of signal handlers (int or void).  */
-+#undef RETSIGTYPE
-+
-+/* Define if you have the ANSI C header files.  */
-+#undef STDC_HEADERS
-+
-+/* Default charset is `Latin-1' on UNIX, `IBM-PC' on MSDOS.  */
-+#undef DEFAULT_CHARSET
-+
-+/* Define to the name of the distribution.  */
-+#undef PACKAGE
-+
-+/* Define to 1 if ANSI function prototypes are usable.  */
-+#undef PROTOTYPES
-+
-+/* Define to the version of the distribution.  */
-+#undef VERSION
-+
-+/* Define to 1 for better use of the debugging malloc library.  See 
-+   site ftp.antaire.com in antaire/src, file dmalloc/dmalloc.tar.gz.  */
-+#undef WITH_DMALLOC
-+
-+/* Define if you have the dup2 function.  */
-+#undef HAVE_DUP2
-+
-+/* Define if you have the pipe function.  */
-+#undef HAVE_PIPE
-+
-+/* Define if you have the popen function.  */
-+#undef HAVE_POPEN
-+
-+/* Define if you have the rename function.  */
-+#undef HAVE_RENAME
-+
-+/* Define if you have the strerror function.  */
-+#undef HAVE_STRERROR
-+
-+/* Define if you have the <libintl.h> header file.  */
-+#undef HAVE_LIBINTL_H
-+
-+/* Define if you have the <limits.h> header file.  */
-+#undef HAVE_LIMITS_H
-+
-+/* Define if you have the <locale.h> header file.  */
-+#undef HAVE_LOCALE_H
-+
-+/* Define if you have the <string.h> header file.  */
-+#undef HAVE_STRING_H
-diff -urN recode-3.4.1-orig/config.h.in recode.341/config.h.in
---- recode-3.4.1-orig/config.h.in      Thu Dec  1 15:10:18 1994
-+++ recode.341/config.h.in     Thu Jan  1 00:00:00 1970
-@@ -1,76 +0,0 @@
--/* config.h.in.  Generated automatically from configure.in by autoheader.  */
--
--/* Define if on AIX 3.
--   System headers sometimes define this.
--   We just want to avoid a redefinition error message.  */
--#ifndef _ALL_SOURCE
--#undef _ALL_SOURCE
--#endif
--
--/* Define to empty if the keyword does not work.  */
--#undef const
--
--/* Define if you don't have vprintf but do have _doprnt.  */
--#undef HAVE_DOPRNT
--
--/* Define if you have the vprintf function.  */
--#undef HAVE_VPRINTF
--
--/* Define if on MINIX.  */
--#undef _MINIX
--
--/* Define if the system does not provide POSIX.1 features except
--   with this defined.  */
--#undef _POSIX_1_SOURCE
--
--/* Define if you need to in order for stat and other things to work.  */
--#undef _POSIX_SOURCE
--
--/* Define as the return type of signal handlers (int or void).  */
--#undef RETSIGTYPE
--
--/* Define if you have the ANSI C header files.  */
--#undef STDC_HEADERS
--
--/* Default charset is `Latin-1' on UNIX, `IBM-PC' on MSDOS.  */
--#undef DEFAULT_CHARSET
--
--/* Define to the name of the distribution.  */
--#undef PACKAGE
--
--/* Define to 1 if ANSI function prototypes are usable.  */
--#undef PROTOTYPES
--
--/* Define to the version of the distribution.  */
--#undef VERSION
--
--/* Define to 1 for better use of the debugging malloc library.  See 
--   site ftp.antaire.com in antaire/src, file dmalloc/dmalloc.tar.gz.  */
--#undef WITH_DMALLOC
--
--/* Define if you have the dup2 function.  */
--#undef HAVE_DUP2
--
--/* Define if you have the pipe function.  */
--#undef HAVE_PIPE
--
--/* Define if you have the popen function.  */
--#undef HAVE_POPEN
--
--/* Define if you have the rename function.  */
--#undef HAVE_RENAME
--
--/* Define if you have the strerror function.  */
--#undef HAVE_STRERROR
--
--/* Define if you have the <libintl.h> header file.  */
--#undef HAVE_LIBINTL_H
--
--/* Define if you have the <limits.h> header file.  */
--#undef HAVE_LIMITS_H
--
--/* Define if you have the <locale.h> header file.  */
--#undef HAVE_LOCALE_H
--
--/* Define if you have the <string.h> header file.  */
--#undef HAVE_STRING_H
-diff -urN recode-3.4.1-orig/config.sed recode.341/config.sed
---- recode-3.4.1-orig/config.sed       Thu Jan  1 00:00:00 1970
-+++ recode.341/config.sed      Sat May 24 21:36:46 1997
-@@ -0,0 +1,5 @@
-+# Add a few DJGPP-specific lines to config.h
-+$a\
-+\
-+#undef MSDOS \
-+
-diff -urN recode-3.4.1-orig/configure recode.341/configure
---- recode-3.4.1-orig/configure        Thu Dec  1 16:31:02 1994
-+++ recode.341/configure       Tue Sep 16 20:51:28 1997
-@@ -1571,6 +1571,7 @@
- for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
-   # Support "outfile[:infile]", defaulting infile="outfile.in".
-   case "$ac_file" in
-+  *.h) ac_file_in="${ac_file}-in" ;;
-   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
-        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
-   *) ac_file_in="${ac_file}.in" ;;
-diff -urN recode-3.4.1-orig/plconv.bat recode.341/plconv.bat
---- recode-3.4.1-orig/plconv.bat       Thu Jan  1 00:00:00 1970
-+++ recode.341/plconv.bat      Sun May 11 23:04:24 1997
-@@ -0,0 +1 @@
-+recode ibm852:latin2 %1
-diff -urN recode-3.4.1-orig/update.bat recode.341/update.bat
---- recode-3.4.1-orig/update.bat       Thu Jan  1 00:00:00 1970
-+++ recode.341/update.bat      Sun Jun  8 14:50:06 1997
-@@ -0,0 +1,6 @@
-+patch < diffs
-+cd recode.34
-+touch config.status
-+touch makefile
-+touch config.h
-+touch stamp-h