+++ /dev/null
-#
-# Makefile automatically generated by MKMK V6.55
-# Fri Nov 06 23:05:56 1998
-#
-
-CFLAGS= DEF HAVE_DONE_WORKING_MALLOC_CHECK DEF HAVE_DONE_WORKING_REALLOC_CHECK \
- DEF STDC_HEADERS=1 DEF __GNU_LIBRARY__ DEF HAVE_STRERROR=1 \
- DEF HAVE_VPRINTF=1 IDIR "" DATA f PARM b OPT
-OBJS= xstrdup.o xmalloc.o hash.o getopt1.o getopt.o error.o argmatch.o# utime.o
-
-reco.lib: $(OBJS)
- oml -v $@ r $(OBJS)
-
-xstrdup.o: xstrdup.c
-
-xmalloc.o: xmalloc.c error.h xalloc.h
-
-hash.o: hash.c hash.h
-
-getopt1.o: getopt1.c getopt.h
-
-getopt.o: getopt.c getopt.h
-
-error.o: error.c error.h
-
-argmatch.o: argmatch.c
-
-utime.o: utime.c# amiga.h timeconvert.h
-
-clean:
- delete $(OBJS)
+++ /dev/null
-#
-# Makefile automatically generated by MKMK V6.55
-# Thu Oct 29 16:46:42 1998
-#
-
-CFLAGS= DEF DEFAULT_CHARSET="Latin-1" DEF PACKAGE="recode" DEF VERSION="3.4k" \
- DEF STDC_HEADERS=1 DEF HAVE_STRING_H=1 DEF HAVE_RENAME=1 \
- DEF HAVE_VPRINTF=1 DEF getpid=rand IGN 80 IDIR /lib DATA f PARM r OPT
-OBJS= dynamic.o main.o pool.o merged.o quoted.o permut.o endline.o dump.o \
- base64.o utf8.o utf7.o utf16.o ucs2html.o ucs.o tables.o rfc1345.o \
- mule.o lat1txte.o lat1texi.o lat1ltex.o lat1asci.o iconqnx.o ibmpc.o \
- flat.o ebcdic.o cdcnos.o bangbang.o atarist.o applemac.o african.o \
- charset.o charname.o recode.o
-
-recode: $(OBJS) /lib/reco.lib
- sc link to recode /lib/reco.lib MATH=s $(OBJS)
-
-dynamic.o: dynamic.c common.h recode.h
-
-main.o: main.c common.h recode.h
-
-pool.o: pool.c common.h recode.h
-
-merged.o: merged.c common.h recode.h
-
-quoted.o: quoted.c common.h recode.h
-
-permut.o: permut.c common.h recode.h
-
-endline.o: endline.c common.h recode.h
-
-dump.o: dump.c common.h recode.h
-
-base64.o: base64.c common.h base64.h recode.h
-
-utf8.o: utf8.c common.h recode.h
-
-utf7.o: utf7.c common.h base64.h recode.h
-
-utf16.o: utf16.c common.h recode.h
-
-ucs2html.o: ucs2html.c common.h recode.h
-
-ucs.o: ucs.c common.h recode.h
-
-tables.o: tables.c common.h recode.h
-
-rfc1345.o: rfc1345.c common.h rfc1345.h recode.h
-
-mule.o: mule.c common.h recode.h
-
-lat1txte.o: lat1txte.c common.h recode.h
-
-lat1texi.o: lat1texi.c common.h recode.h
-
-lat1ltex.o: lat1ltex.c common.h recode.h
-
-lat1asci.o: lat1asci.c common.h recode.h
-
-iconqnx.o: iconqnx.c common.h recode.h
-
-ibmpc.o: ibmpc.c common.h recode.h
-
-flat.o: flat.c common.h recode.h
-
-ebcdic.o: ebcdic.c common.h recode.h
-
-cdcnos.o: cdcnos.c common.h recode.h
-
-bangbang.o: bangbang.c common.h recode.h
-
-atarist.o: atarist.c common.h recode.h
-
-applemac.o: applemac.c common.h recode.h
-
-african.o: african.c common.h african.h recode.h
-
-charset.o: charset.c common.h recode.h
-
-charname.o: charname.c common.h charname.h recode.h
-
-recode.o: recode.c common.h decsteps.h inisteps.h recode.h
-
-clean:
- delete $(OBJS) recode.lnk
+++ /dev/null
-.. 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
+++ /dev/null
-.. 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
+++ /dev/null
-#! /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
+++ /dev/null
-@echo off\r
-echo Configuring 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
+++ /dev/null
-# 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
+++ /dev/null
-@V@/config.h.in @V@/config.h-in\r
+++ /dev/null
-recode-3.7-beta2/config.h.in recode-3.7-beta2/config.h-in\r
AUTOMAKE_OPTIONS = gnits
-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
+ELISP_FILES = recode.el
-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 $@
+EXTRA_DIST = $(ELISP_FILES)
=======================================
The :file:`contrib/` directory of the Recode distribution contains a few
-miscellaneous tools, ports, or such things, which have been collected
-here and there, a bit randomly, for your possible entertainment or use.
+miscellaneous tools, which have been collected here and there, a bit
+randomly, for your possible entertainment or use.
Beware that nothing here is supported by the Recode maintainer, you
might have to contact the authors directly to get support. There is no
+ Emacs Lisp files
- + :file:`utf8.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.
-
+ :file:`recode.el`
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.
-
-+ RPM spec files
-
- + :file:`recode.spec1`
-
- RPM spec file to prepare Recode 3.5c on RedHat. Submitted by David
- Lebel, 2000-06.
-
- + :file:`recode.spec2`
-
- RPM spec file to prepare Recode 3.5d on RedHat. Submitted by Bennett
- Todd, 2002-01. Bennett writes (more or less):
-
- 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::
-
- %_topdir /home/bet/rpm
-
- 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.
-
-+ Amiga port
-
- 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.
+++ /dev/null
-%define rcsid $Id: recode.spec,v 1.5 2000/06/29 13:52:54 lebel Exp $
-%define nam recode
-%define ver 3.5c
-%define rel 1
-%define sysconfdir /etc
-%define prefix /usr
-
-Summary: The Recode library converts files between character sets and usages.
-Name: %nam
-Version: %ver
-Release: %rel
-Copyright: GPL
-Vendor: François Pinard et al.
-Group: Applications/Text
-Source: http://www.iro.umontreal.ca/contrib/recode/%{nam}-%{ver}.tar.gz
-URL: http://www.iro.umontreal.ca/~pinard/
-BuildRoot: /var/tmp/%{nam}-%{ver}-root
-Docdir: %{prefix}/doc
-
-%description
-The Recode library converts files between character sets and usages.
-The library recognises or produces nearly 150 different character sets
-and is able to transliterate files between almost any pair. When
-exact transliteration are not possible, it may get rid of the
-offending characters or fall back on approximations. Most RFC 1345
-character sets are supported. The `recode' program is a handy
-front-end to the library.
-
-The Recode program and library have been written by François Pinard.
-It is an evolving package, and specifications might change in future
-releases. Option `-f' is now fairly implemented, yet not fully.
-
-%package devel
-Summary: Libraries and include files for developing applications using the Recode library.
-Group: Development/Libraries
-
-%description devel
-This package provides the necessary development libraries and include
-files to allow you to develop applications using the Recode libraries.
-
-%changelog
-* Thu Jun 29 2000 David Lebel <lebel@lebel.org>
-- Initial public release of this SPEC file.
-
-%prep
-%setup -q
-
-%build
-if [ ! -f configure ]; then
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh \
- --prefix=%{prefix} --sysconfdir=%{sysconfdir}
-else
- CFLAGS="$RPM_OPT_FLAGS" ./configure \
- --prefix=%{prefix} --sysconfdir=%{sysconfdir}
-fi
-
-make
-
-%install
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-
-make install-strip \
- prefix=$RPM_BUILD_ROOT%{prefix} \
- sysconfdir=$RPM_BUILD_ROOT%{sysconfdir}
-
-%clean
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
-
-%post
-if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
- echo "%{prefix}/lib" >> /etc/ld.so.conf
-fi
-
-[ -x /sbin/ldconfig ] && /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(-, bin, bin)
-
-%doc ABOUT-NLS AUTHORS BACKLOG COPYING COPYING-LIB ChangeLog INSTALL NEWS README THANKS TODO
-%{prefix}/bin/*
-%{prefix}/lib/*.so*
-%{prefix}/info/recode*
-%{prefix}/man/man1/*
-%{prefix}/share/locale/*
-
-%files devel
-%defattr(0555, bin, bin)
-
-%{prefix}/include/*
-%{prefix}/lib/*.a
-%{prefix}/lib/*.la
+++ /dev/null
-Name: recode
-Version: 3.5d
-Release: 2
-Summary: Converter between charsets and surfaces
-Group: Utilities/Text
-
-Vendor: Progiciels Bourbeau-Pinard inc.
-Copyright: GPL, LGPL
-Packager: Franc,ois Pinard <pinard@iro.umontreal.ca>
-
-Source: http://recode.progiciels-bpi.ca/archives/recode-3.5d.tar.gz
-URL: http://recode.progiciels-bpi.ca/
-
-Buildroot: /var/tmp/%{name}-rpmroot
-
-%description
-The recode library converts files between character sets and usages.
-It recognises or produces more than 300 different character sets
-and transliterates files between almost any pair. When exact
-transliteration are not possible, it gets rid of offending characters
-or fall back on approximations. The recode program is a handy
-front-end to the library.
-
-%prep
-%setup
-
-%build
-./configure --prefix=/usr
-make
-
-%install
-mkdir -p $RPM_BUILD_ROOT/usr
-make prefix=$RPM_BUILD_ROOT/usr install
-
-%changelog
-* Thu Jan 31 2002 Bennett Todd <bet@rahul.net>
- 3.5d-2: started w/ spec file from tarball, made spec portable
-
-%files
-%defattr(-,root,root)
-%doc ABOUT-NLS AUTHORS BACKLOG ChangeLog COPYING COPYING-LIB INSTALL NEWS PATCHES-AC README README-alpha THANKS TODO doc
-/usr/bin/*
-/usr/include/*
-/usr/lib/*
-%doc /usr/info/%{name}*
-%doc /usr/man/*/*
-/usr/share/locale/*/LC_MESSAGES/*
+++ /dev/null
-;;; utf8.el --- Insert UTF-8 encoded ISO-10646/Unicode characters.
-;;;
-;;; Copyright (C) 1994 Gary Houston <ghouston@actrix.gen.nz>
-;;;
-;;; This program is free software; you can redistribute it and/or modify
-;;; it under the terms of the GNU General Public License as published by
-;;; the Free Software Foundation; either version 2 of the License, or
-;;; (at your option) any later version.
-;;;
-;;; This program is distributed in the hope that it will be useful,
-;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;;; GNU General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with this program; if not, write to the Free Software
-;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-;;; COMMENTARY
-;;; ----------
-
-;;; Provides a command for direct entry of UTF-8 encoded multibyte
-;;; characters in hexadecimal form.
-
-;;; Load file and type `M-x hex-to-utf8'
-
-;;; Also contains a simple symbol selection command (not many symbols):
-;;; M-x utf8-symbol and TAB for completion.
-
-;;; A list of Unicode names and codes is available by ftp from unicode.org.
-
-;;; Modification of Emacs to display and process the multibyte characters
-;;; correctly is left as an exercise for the reader.
-
-;;; HISTORY
-;;; -------
-;;; Created 1994-10-24. Experimental. May contain bugs.
-;;; Uses a few lines of code from hexl.el.
-
-;;; THEORY
-;;; ------
-;;; The UTF-FSS (aka UTF-2 aka UTF-8) encoding of UCS, as described in the
-;;; following quote from Ken Thompson's utf-fss.c:
-;;;
-;;;Bits Hex Min Hex Max Byte Sequence in Binary
-;;; 7 00000000 0000007f 0vvvvvvv
-;;; 11 00000080 000007FF 110vvvvv 10vvvvvv
-;;; 16 00000800 0000FFFF 1110vvvv 10vvvvvv 10vvvvvv
-;;; 21 00010000 001FFFFF 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv
-;;; 26 00200000 03FFFFFF 111110vv 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv
-;;; 31 04000000 7FFFFFFF 1111110v 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv
-;;;
-;;; The UCS value is just the concatenation of the v bits in the multibyte
-;;; encoding. When there are multiple ways to encode a value, for example
-;;; UCS 0, only the shortest encoding is legal.
-
-(defun hex-to-utf8 (hex-string)
- "Convert a hex string to a UTF-8 multibyte character."
- (interactive "sEnter hex character value (0 - 7FFFFFFF): ")
- (let ((widechar 0.0)
- (num-bytes 1)
- (orig-hex hex-string))
- ;; Convert the string to a decimal float.
- ;; Floats are used since elisp integers may be too small for
- ;; large characters.
- (while (not (equal hex-string ""))
- (setq widechar
- (+ (* widechar 16)
- (utf8-hex-char-to-integer (string-to-char hex-string))))
- (setq hex-string (substring hex-string 1)))
- (if (>= widechar (expt 2.0 31))
- (error (format "char value %s is larger than 7FFFFFFF" orig-hex)))
-
- ;; Calculate the number of UTF-8 bytes needed.
- (while (>= widechar
- ;; 2 raised to the number of bits with this many bytes.
- (expt
- 2.0
- (+
- (if (= num-bytes 1) 7 (- 7 num-bytes))
- (* (- num-bytes 1) 6))))
- (setq num-bytes (+ num-bytes 1)))
-
- (insert
- ;; First byte.
- (char-to-string
- (logior
- (truncate (/ widechar (expt 2.0 (* (- num-bytes 1) 6))))
- (if (= num-bytes 1)
- 0
- (mod (lognot (- (expt 2 (+ 8 (- num-bytes))) 1)) 256)))))
-
- ;; Remaining bytes.
- (while (> num-bytes 1)
- (setq num-bytes (- num-bytes 1))
- (insert
- (char-to-string
- (logior
- (truncate
- (/
- (mod widechar (expt 2.0 (* num-bytes 6)))
- (expt 2.0 (* (- num-bytes 1) 6))))
- 128))))))
-
-(defun utf8-hex-char-to-integer (character)
- "Take a char and return its value as if it was a hex digit."
- (if (and (>= character ?0) (<= character ?9))
- (- character ?0)
- (let ((ch (logior character 32)))
- (if (and (>= ch ?a) (<= ch ?f))
- (- ch (- ?a 10))
- (error (format "Invalid hex digit `%c'." ch))))))
-
-;;; Symbol selection stuff.
-
-(defconst ISO-10646-symbol-types
- '(("greek-basic" nil)
- ("chess" nil)
- ("cards" nil))
- "Classes of ISO-10646 symbols")
-
-(defconst ISO-10646-greek-basic
- '(("GREEK CAPITAL LETTER ALPHA" "0391")
- ("GREEK CAPITAL LETTER BETA" "0392")
- ("GREEK CAPITAL LETTER GAMMA" "0393")
- ("GREEK CAPITAL LETTER DELTA" "0394")
- ("GREEK CAPITAL LETTER EPSILON" "0395")
- ("GREEK CAPITAL LETTER ZETA" "0396")
- ("GREEK CAPITAL LETTER ETA" "0397")
- ("GREEK CAPITAL LETTER THETA" "0398")
- ("GREEK CAPITAL LETTER IOTA" "0399")
- ("GREEK CAPITAL LETTER KAPPA" "039A")
- ("GREEK CAPITAL LETTER LAMDA" "039B")
- ("GREEK CAPITAL LETTER MU" "039C")
- ("GREEK CAPITAL LETTER NU" "039D")
- ("GREEK CAPITAL LETTER XI" "039E")
- ("GREEK CAPITAL LETTER OMICRON" "039F")
- ("GREEK CAPITAL LETTER PI" "03A0")
- ("GREEK CAPITAL LETTER RHO" "03A1")
- ("GREEK CAPITAL LETTER SIGMA" "03A3")
- ("GREEK CAPITAL LETTER TAU" "03A4")
- ("GREEK CAPITAL LETTER UPSILON" "03A5")
- ("GREEK CAPITAL LETTER PHI" "03A6")
- ("GREEK CAPITAL LETTER CHI" "03A7")
- ("GREEK CAPITAL LETTER PSI" "03A8")
- ("GREEK CAPITAL LETTER OMEGA" "03A9")
- ("GREEK SMALL LETTER ALPHA" "03B1")
- ("GREEK SMALL LETTER BETA" "03B2")
- ("GREEK SMALL LETTER GAMMA" "03B3")
- ("GREEK SMALL LETTER DELTA" "03B4")
- ("GREEK SMALL LETTER EPSILON" "03B5")
- ("GREEK SMALL LETTER ZETA" "03B6")
- ("GREEK SMALL LETTER ETA" "03B7")
- ("GREEK SMALL LETTER THETA" "03B8")
- ("GREEK SMALL LETTER IOTA" "03B9")
- ("GREEK SMALL LETTER KAPPA" "03BA")
- ("GREEK SMALL LETTER LAMDA" "03BB")
- ("GREEK SMALL LETTER MU" "03BC")
- ("GREEK SMALL LETTER NU" "03BD")
- ("GREEK SMALL LETTER XI" "03BE")
- ("GREEK SMALL LETTER OMICRON" "03BF")
- ("GREEK SMALL LETTER PI" "03C0")
- ("GREEK SMALL LETTER RHO" "03C1")
- ("GREEK SMALL LETTER FINAL SIGMA" "03C2")
- ("GREEK SMALL LETTER SIGMA" "03C3")
- ("GREEK SMALL LETTER TAU" "03C4")
- ("GREEK SMALL LETTER UPSILON" "03C5")
- ("GREEK SMALL LETTER PHI" "03C6")
- ("GREEK SMALL LETTER CHI" "03C7")
- ("GREEK SMALL LETTER PSI" "03C8")
- ("GREEK SMALL LETTER OMEGA" "03C9")
- ("GREEK BETA SYMBOL" "03D0")
- ("GREEK THETA SYMBOL" "03D1")
- ("GREEK PHI SYMBOL" "03D5")
- ("GREEK PI SYMBOL" "03D6")
- ("GREEK LETTER STIGMA" "03DA")
- ("GREEK LETTER DIGAMMA" "03DC")
- ("GREEK LETTER KOPPA" "03DE")
- ("GREEK LETTER SAMPI" "03E0")
- ("GREEK KAPPA SYMBOL" "03F0")
- ("GREEK RHO SYMBOL" "03F1")
- ("GREEK LUNATE SIGMA SYMBOL" "03F2")
- ("GREEK LETTER YOT" "03F3")
- ("TURNED GREEK SMALL LETTER IOTA" "2129"))
- "Names and character codes for ISO-10646 unaccented Greek letters.")
-
-(defconst ISO-10646-chess
- '(("WHITE CHESS KING" "2654")
- ("WHITE CHESS QUEEN" "2655")
- ("WHITE CHESS ROOK" "2656")
- ("WHITE CHESS BISHOP" "2657")
- ("WHITE CHESS KNIGHT" "2658")
- ("WHITE CHESS PAWN" "2659")
- ("BLACK CHESS KING" "265A")
- ("BLACK CHESS QUEEN" "265B")
- ("BLACK CHESS ROOK" "265C")
- ("BLACK CHESS BISHOP" "265D")
- ("BLACK CHESS KNIGHT" "265E")
- ("BLACK CHESS PAWN" "265F"))
- "Names and character codes for ISO-10646 chess pieces.")
-
-(defconst ISO-10646-cards
- '(("BLACK SPADE SUIT" "2660")
- ("WHITE HEART SUIT" "2661")
- ("WHITE DIAMOND SUIT" "2662")
- ("BLACK CLUB SUIT" "2663")
- ("WHITE SPADE SUIT" "2664")
- ("BLACK HEART SUIT" "2665")
- ("BLACK DIAMOND SUIT" "2666")
- ("WHITE CLUB SUIT" "2667"))
- "Names and character codes for ISO-10646 playing cards.")
-
-(defun utf8-symbol ()
- "Insert a UTF-8 encoded symbol from ISO-10646."
- (interactive)
- (do-ISO-10646-symbol-type
- (completing-read "Symbol category: " ISO-10646-symbol-types nil t)))
-
-(defun do-ISO-10646-symbol-type (category)
- "Insert a UTF-8 encoded symbol from a given category."
- (let ((category-var (intern (concat "ISO-10646-" category)))
- (completion-ignore-case t))
- (hex-to-utf8
- (elt
- (assoc
- (completing-read "Name of the symbol: "
- (symbol-value category-var) nil t)
- (symbol-value category-var)) 1))))