INTRODUCTION ============ This copy of the GNU file utilities version 3.16 for OS/2 has been compiled using the patch for versio 3.13 written by Kai Uwe Rommel. When I applied his patch to this version, only minor changes were needed. So, basic features of OS/2 ported programs are not different from version 3.13 programs by Kai Uwe Rommel. To know the diffrence between OS/2 ported programs and original Unix ones, read his document, `README-3.13.os2'. (original file name is `README.OS2') Very much thanks to his great work ! SAWATAISHI Jun COMPILATION ENVIRONMENT ======================= OS/2 version 4 gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release) emx 0.9d with fix01 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 Intel 586 (PENTIUM) or later CPU MODIFICATIONS FOR JAPANESE USERS ================================ 1) Applied DBCS patch for file names of Japanese Shift JIS code DBCS patch was written by NAKAGAWA Takayuki , and modified by OKUNISHI Fujikazu . Thanks to their work, `cp.exe', `mv.exe'... can handle Shift JIS file names. About DBCS patch, read `gnufu3.13-DBCS.diff' and 'README-ja.OS2.asc' included in the package. 2) Linked with 'intl' library of GNU gettext version 0.10.35 modified to accept Japanese EUC or Shift JIS code 3) Message file of Shift JIS is added fileutils-3.16\share\locale\ja\LC_MESSAGES\fileutils.mo INSTALLATION ============ 1. Copy executables and DLLs \> unzip os2_os2_fileutils-3.16 \> cd os2_fileutils-3.16 os2_fileutils-3.16\> copy bin\*.exe SOMEWHERE_IN_PATH_DIRECTORY os2_fileutils-3.16\> 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. os2_fileutils-3.16\> mkdir g:\emx\share os2_fileutils-3.16\> mkdir g:\emx\share\locale os2_fileutils-3.16\> 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 Should 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; os2_fileutils-3.16\> dir /s g:\emx\share\locale\fileutils.mo You will see 9 MO files are installed; de, es, fr, ..... de : German es : Spanish fr : French ja : Japanese nl : Dutch pl : Polish pt : Portuguese sl : Slovenian sv : Swedish 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 shell utilities `env.exe'. \> env LANGUAGE=it 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) os2_fileutils-3.16\> set GNULOCALEDIR=g:/emx/share/locale os2_fileutils-3.16\> set LANGUAGE=fr os2_fileutils-3.16\> cp [--help] You will see French messages os2_fileutils-3.16\> set LANGUAGE=es os2_fileutils-3.16\> cp [--help] Now Spanish messages will appear After you completed editing `config.sys', reboot your machine. DOCUMENTATIONS ============== MUST-READ manual is `fileutils.info' and README in `fileutils-3.16\doc'. If you do not have installed Texinfo for Info mannual, gettext.info, the newest version can be get from my web page. http://member.nifty.ne.jp/jsawa/os2_texinfo-3.12h.zip (README for OS/2 is written in English) OS/2 specific documents are in `fileutils-3.16\ForOS2user'. README-3.13.os2: About OS/2 port by Kai Uwe Rommel README-3.16.os2: This file you are reading now README-ja.OS2.asc: About DBCS patch by NAKAGAWA Takayuki and OKUNISHI Fujikazu fileutils-3.16.diff.gz: Diff file to apply an riginal source 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 `fileutils-3.16.tar.gz'. ftp: alpha.gnu.ai.mit.edu/gnu/ or its mirror sites CDROM: Recent Linux or FreeBSD distribution which contains it. Untar and patch \> tar zxvf fileutils-3.16.tar.gz \> cd fileutils-3.16 fileutils-3.16\> attrib /s -r * (chmod +rw -R *) fileutils-3.16\> gzip -dc SOMEWHERE/fileutils-3.16.diff.gz | patch -p1 Setup Unix-like shell `sh.exe' (of pdksh) fileutils-3.16\> mkdir \bin fileutils-3.16\> copy SOMEWHERE\sh.exe \bin fileutils-3.16\> make fileutils-3.16\> make install prefix=YOUR_CHOICE If you installed emx 0.9d in `g:/emx', dirctories, `g:/emx/dll/', `g:/emx/lib/', and 'g:/emx/bin/' may exist. In this cae "YOUR_CHOICE" should be `g:/emx'. 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/6/16 SAWATAISHI Jun, YOKOHAMA, JAPAN http://www2s.biglobe.ne.jp/~vtgf3mpr/indxos2.htm