INTRODUCTION ============ This copy of the GNU text utilities version 1.22 has been compiled using the patch, which is written by Kai Uwe Rommel , for the version 1.19. When I applied the patch to this version, only minor changes were needed. Precompiled executables are: cat.exe expand.exe md5sum.exe sort.exe tr.exe cksum.exe fmt.exe nl.exe split.exe unexpand.exe comm.exe fold.exe od.exe sum.exe uniq.exe csplit.exe head.exe paste.exe tac.exe wc.exe cut.exe join.exe pr.exe tail.exe COMPILATION ENVIRONMENT ======================= OS/2 version 4 gcc version 2.8.1 emx 0.9d with fix02 REQUIRED RESOURCES ================== emx runtime version 0.9d ftp://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip ftp://ftp.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/emxrt.zip MODIFICATIONS FOR JAPANESE USERS ================================ 1) Linked with `intl' library of GNU gettext version 0.10.35 modified to accept Japanese EUC or Shift JIS code 2) Message file for Japanese Shift JIS is added INSTALLATION ============ 1. Copy executables and DLLs \> unzip tutil122.zip \> cd textutils-1.22 textutils-1.22\> copy bin\*.exe SOMEWHERE_IN_PATH_DIRECTORY textutils-1.22\> copy dll\*.dll SOMEWHERE_IN_LIBPATH_DIRECTORY 2. Install message files and edit `config.sys' If you'd like to install them in `g:\emx', do like this. textutils-1.22\> mkdir g:\emx\share textutils-1.22\> mkdir g:\emx\share\locale textutils-1.22\> xcopy /s share\locale\* g:\emx\share\locale Now you MUST set environmental variable `GNULOCALEDIR' in your `config.sys'. set GNULOCALEDIR=g:/emx/share/locale Do not use `\' for `GNULOCALEDIR'. Next, specify an environmental variable `LANGUAGE'. To know what kind of languages are prepared for this copy of GNU file utilities, do like this; textutils-1.22\> dir /s g:\emx\share\locale\fileutils.mo You will see 7 MO files are installed; de, es, fr, ..... de : German es : Spanish fr : French ja : Japanese (SJIS) ko : Korean nl : Dutch pl : Polish Add a line in your `config.sys' set LANGUAGE=?? "??" represents an abbreviation of the language Good way to test many kinds of language is to use one of GNU text utilities `env.exe'. \> env LANGUAGE=de cp --help \> env LANGUAGE=ja cp --help \> env LANGUAGE=fr cp --help Befor reboot your machine, test programs in command line. (Be sure that *.exe and *.dll has been installed) textutils-1.22\> set GNULOCALEDIR=g:/emx/share/locale textutils-1.22\> set LANGUAGE=fr textutils-1.22\> cp [--help] You will see French messages textutils-1.22\> set LANGUAGE=de textutils-1.22\> cp [--help] Now German messages will appear After you completed editing `config.sys', reboot your machine. DOCUMENTATIONS ============== MUST-READ manual is `fileutils.info' and README in `textutils-1.22\doc'. If you do not have installed Texinfo for Info mannual, sh-utils.info, the newest version can be get from my web page. MAKE FROM SOURCE ================ OS/2 ported Unix like shell is required. ftp.leo.org/pub/comp/os/os2/leo/shells/pdksh-5.2.13-emx.zip Obtain a source package `textutils-1.22.tar.gz'. ftp://alpha.gnu.org/gnu/ or its mirror sites CDROM: Recent Linux or FreeBSD distribution which contains it. OS/2 patch is in `textutils-1.22\os2_patch' textutils-1.22-OS2.diff.gz: OS/2 patch Untar and patch \> tar zxvf textutils-1.22.tar.gz \> cd textutils-1.22 textutils-1.22\> attrib /s -r * (or chmod +rw -R *) textutils-1.22\> gzip -dc SOMEWHERE/textutils-1.22-OS2.diff.gz | patch -p1 Setup Unix-like shell `sh.exe' (of pdksh) textutils-1.22\> mkdir \bin textutils-1.22\> copy SOMEWHERE\sh.exe \bin textutils-1.22\> make About two kind of `intl' library intl_d.dll, intl_d.a intl_d.lib ; for '-Zmt[d]' option of gcc. intl_s.dll, intl_s.a intl_s.lib ; for without '-Zmt[d]' option of gcc. If you make a executable with "gcc -Zmtd ..." and link `intl_s.a' or `intl_s.lib', compilation error do not occur. But national language support is not available for the program. That' all. Comments, suggestions, or requests are always wellcome. Happy computing life with OS/2!! 1999/11/6 SAWATAISHI Jun, YOKOHAMA, JAPAN http://www2s.biglobe.ne.jp/~vtgf3mpr/indxos2.htm