From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- systems/vtex/NEWS | 619 +++++++++++++++++++++++++++ systems/vtex/README | 24 ++ systems/vtex/linux/readme-linux.eng | 399 +++++++++++++++++ systems/vtex/os2/readme-os2.eng | 370 ++++++++++++++++ systems/vtex/os2/vtexinst.cmd | 822 ++++++++++++++++++++++++++++++++++++ 5 files changed, 2234 insertions(+) create mode 100644 systems/vtex/NEWS create mode 100644 systems/vtex/README create mode 100644 systems/vtex/linux/readme-linux.eng create mode 100644 systems/vtex/os2/readme-os2.eng create mode 100644 systems/vtex/os2/vtexinst.cmd (limited to 'systems/vtex') diff --git a/systems/vtex/NEWS b/systems/vtex/NEWS new file mode 100644 index 0000000000..80376303da --- /dev/null +++ b/systems/vtex/NEWS @@ -0,0 +1,619 @@ +VTeX/Free -- list of changes +============================ + + + +VTeX/Free 8.44.2 as of 2005-02-11 +--------------------------------- +The incorrect archive file vtex-cbfonts.zip was fixed. +The new version is: + + 8828226 Feb 11 12:08 vtex-cbfonts.zip + +In case you have already installed VTeX 8.44.2 using the +old, incorrect archive file, you will find a number of +subdirectories in the VTeX root directory, which should +not have been created. To remove this mess and make the CB +fonts work as expected, proceed as follows: + +OS/2: +The follwoing directories were wrongly created in the root +directory of the volume (drive) where you have installed +VTeX: + + fonts\tfm + fonts\type1 + vtex\config + tex (empty dir.) + +Please, delete these directories including all of their +contents. (Make sure to remove only \vtex\config, rather +than all of \vtex!) +Download the fixed version of vtex-cbfonts.zip and unpack it +in the root directory of the volume (drive) where you have +installed VTeX. + + +Linux: +The following subdirectories were wrongly created in +/usr/local/vtex: + + fonts/tfm + fonts/type1 + vtex + tex (empty dir.) + +Please, delete these directories including all of their +contents. +Download the fixed version of vtex-cbfonts.zip and unpack it +in /usr/local/vtex. + + + +VTeX/Free 8.44.2 (2005-02-08) +----------------------------- + +* compiler v8.44a (OS/2) and v8.46a (Linux) + +* The shell scripts to execute VTeX do no longer force all + fonts to be processed through GeX, i.e., the option -ox2p + has been changed to -ox2 + +* UTF-8 input fixed + +* By default, the macro packages of the AMS-Fonts collection + access a number of fonts which do not exist in Type1 + format. To circumvent this problem, VTeX/Free until + version 8.44 came with patched font definition files, + which did not use the missing fonts. For the sake of + compatibility with other TeX distributions, these patches + have been abandoned with v8.44a. Instead, the missing + fonts are faked internally. (This is the same solution as + applied, for instance, in the TeXLive system.) As an + unfortunate side-effect, however, the packages amsonts, + amssymb, eucal and eufrak must be loaded with the option + [psamsfonts] now, if you need to make sure that the AMS + and Euler fonts can be scaled to arbitrary sizes. + +* Latest versions of (hopefully) all hyphenation patterns, + macro packages and fonts. Notice particularly PSNFSS 9.2 + (including Palatino smallcaps and oldstyle figures), + Ibycus 4.5, Fourier 1.4 and the 2004 edition of PS-Tricks. + +* New: Greek CM fonts (aka CB fonts), Ibycus-Babel + interface, chess.sty, etex.sty + + + +VTeX/Free 8.44/8.46 (2004-07-02) +-------------------------------- +* improved installation instructions for VTeX/Linux, + file readme-linux.eng + (thanks to Wolfgang Riedel) + + + +VTeX/Free 8.44/8.46 +------------------- + +* VTeX compiler v 8.44 (OS/2), 8.46 (Linux), providing + various bug fixes and basic MM font support + +* Latest LaTeX2e as of March 2004 + +* Additional LaTeX packages: + KOMA-Script collection; mathdots.sty, upquote.sty, + eso-pic.sty, relsize.sty, everysel.sty, everyshi.sty + multitoc.sty, ragged2e.sty, pict2e.sty + +* Additional hyphenation patterns: basque, catalan, + hungarian, irish, latin + +* Additional fonts: + Fourier ("Utopia Math"); CJHebrew fonts and package; + ES-Int font and package + +* Additional distribution file vtex-koma-zip; distribution + file vtex-texmf.zip has been split into vtex-texmf.zip and + vtex.texmf2.zip. + +* VTeX/Free is distributed immediately from CTAN now. + Do NOT attempt to download from ftp.uni-erlagen.de any more! + + + +VTeX/free 8.23c +--------------- + +VTeX compiler v8.23c: + +* eTeX extensions +* PDF graphics inclusion +* improved handling of EPS graphics, + particularly from Win drivers +* fixed GeX plugins + +Solaris port has been given up. + +LaTeX: + +* new package manfnt.sty +* fixed pstricks.con to avoid clash + with fancybox package +* Euler-VM 3.0 +* hyperref 6.74h +* PSNFSS 9.0c +* updated seminar.con and prosper.cls to match the /Win distrib +* ArabTeX 3.10h + +Fonts: + +* improved URW NimbusSans with fixed \ss +* fixed bug re. Times Bold Italic font not loading under + certain circumstances, because TFM for raw (not reencoded) + font was missing. + +PS-Tricks: + +* fixed pst-dots.pro to avoid problem with Reader + +Ibycus4: + +* bold Greek font added; +* improved (experimental) version of the macro packages; + +Hyphenation patterns: + +* latest Spanish patterns eshyph.tex 4.0a +* support for Catalan removed + +Documentation: + +* improved VTeX Manual, which describes also + the setup of the VTeX/Free distribution +* eTeX manual + + + +VTeX/Lnx 8.02, VTeX/2 8.11 as of 2003-03-12 +------------------------------------------- + +VTeX Compiler version 8.02 for Linux, v8.11 for OS/2: + +* many bugs and deficiencies fixed +* supports the latest hyperref +* can read gzip-compressed EPS images +* all bitmap image formats are now supported + on both platforms +* space optimization +* precompiled font map files (optional) + +Solaris port is not yet available. + +The file system has been rearranged to comply with TDS 1.0: + +* font mapping files reside in texmf/fonts/map/vtex +* encoding vectors reside in texmf/fonts/enc/dvips + +Documentation: + +* the setup of the /Free distrib is now described + in the VTeX manual texmfdoc/vtex/vtex.pdf; +* more ready made docs for AMS-LaTeX, + see temf/doc/latex/amscls/ and ../amsmath + +LaTeX: + +* latest versions of all packages +* new packages: gensymb, mparhack, esvect, dsfont, framed +* \aliasfont commands moved from preload.cfg to latex.fid; + preload.cfg is no longer required (but still provided as + a dummy file) + +Ibycus4: + +* some VTeX-specific changes, see the file + texmf/doc/generic/ibycus4/README.vtex + +Hyphenation patterns: + +* latest Russian patterns as of 2002-02-13 + +Fonts: + +* URW base fonts are now shipped with VTeX +* new fonts : esvect (for esvect.sty), Doublestroke, + Context Navigation Symbols (contnav.tfm), Adobe Chess +* TIPA fonts updated to version 1.1 + +No longer included: + +* Virtual AE fonts and related macro package: Due to the + availability of EC fonts in Type1 format, they are + generally considered as obsolete now. + +* KOMA-script: It seems -- unfortunately -- to have become + somewhat unstable. Furthermore, the KOMA collection must + not be distributed without the documentation in DVI + format. Distributing the KOMA manuals only in PDF format + is not allowed. I had a long debate with Markus about + this issue, but I could not convince him that DVI makes no + sense with VTeX. I'm not willing to give in and + distribute more than 3 MB of useless files. + +* mathcomp.sty: please, use gensymb.sty instead + + + +VTeX/Free 7.530 as of 2002-03-25 +-------------------------------- + +Updated archive file common/vtex-fonts2.zip (fixed EC +fonts). The version number of the distribution is +unchanged. + +To update the fonts on Linux, unzip the archive in the +directory /usr/local/vtex. On OS/2, unzip the archive in +the root directory of the drive, where you have installed +VTeX/2. + + + +VTeX/Free 7.530 (2002-01-27) +---------------------------- + +VTeX compiler version 7.53: + +* Fixed problem with PostScript mode (unwanted garbage at + end of page); +* inclusion of .avi movies in PDF mode is now supported; +* improved GeX font handling; +* fixed bug with line drawing & rotation; +* GeX memory can be customized. + +New LaTeX packages: + +* KOMA-script bundle; +* Arabtex bundle and related Type 1 fonts + for typesetting Arab and Hebrew. + +Updated macros + +* soul 2.0 +* pdfcrypt 0.6, +* hyperref 6.72b + +New fonts + +* EC/TC fonts in Type1 format +* cmr and cmss TIPA fonts in Type1 format + +Hyphenation patterns + +* Updated hyphenation patterns sihyph23 for Slovene; +* frhyph version 2.11 (French); +* ithyph 4.8d (Italian) +* patterns for Ukrainian added. + +Miscellaneous + +* LaTeX format file will now check \stockheight and + \stockwidth, too, in order to determine media size; + this complies with hyperref 6.72b; +* fixed font map file misc.ali to make BrushScript font + working; +* fixed typos in font map file pdfbase.ali; +* new version of fxeff plugin, which will (hopefully) no + longer cause problems due to potential library mismatch; + this affects Linux only. + +Installation + +* Improved REXX scripts makevlatex and makeplain, see the + comments in the files; this affects OS/2 only; + +Documentation + +* More ready-made PSTricks documentation + + + +VTeX/Free 7.461 (2001-10-29) +---------------------------- + +* VTeX compiler version 7.46a; fixed handling of EPS files + which make strange assmuptions about the current clippath. + +* fixed vtexps.pro: \includegraphics clip option would fail + in PostScript mide without GeX + + + +VTeX/Free 7.460 (2001-10-22) +---------------------------- + +* VTeX compiler version 7.46. Many fixes, particularly wrt/ + handling of PostScript images; increased stack size + +* Linux: main configuration file resides in the /etc + directory now and is named "vtex.ini", as on OS/2. + +* Linux: No more need to specify the full path, when + executing VTeX, Bibtex or Makeindex. + +* OS/2: VTeX/2 comes with an installation program now. + +* GeX is now enabled in the shell scripts vlatexp and + vplainp (PostScript mode) + +* fixed vlatexp shell script to set the default BoundingBox + to A4 + +* Additional fonts and related macro packages: + Ibycus 4, + TIPA, + Euler-VM math fonts, + St-Mary-Road math symbols, + BrushScriptX + +* Additional LaTeX macro packages: + fixmath.sty, upgreek.sty, icomma.sty, ifvtex.sty, + ifpdf.sty, pdfcrypt.sty, float.sty + +* LaTeX (incl. tools, graphics and Cyrillic bundles) as of + "June 2001", hyperref 6.71q, minor fixes to Babel + +* Updated macro packages: + url.sty 1.5, draftcopy 2.15, changebar 3.4d, pdfscreen + with minor fixes (will no longer mess up the desktop), + foilTeX v2.1.3.c (fixed landscape foils in PostScript + mode), mflogo 2.0 + +* PSTricks: latest version as on CTAN; full documentation + is now supplied; pst-fill module fixed wrt/ VTeX + +* Prosper: improved prosper.cls (AVK, 2001-10-15) to fully + support VTeX PDF/PS modes + +* FX Plugin and related macro package for font effects + +* New Russian hyphenation patterns as of August 7, 2001. + We load the Russian-only patterns now, as opposed to the + Russian-English ones; this seems to be more appropriate + with Babel. Code templates to select the font encoding + for Russian (default: T2A) are now part of hyphen.cfg. + +* patched .fd files for OT2/cmr so as to use the wncyr + fonts. Rationale: OT2/cmr fonts are not supplied with + VTeX/Free; actually, they do not exist in Type1 format. + NB: using wncyr for OT2/cmr was LaTeX's default behavior, + before the Cyrillic bundle was introduced. + +* Many more .enc files; texnansi.enc renamed to ly1.enc. + +* New shell scripts `makevlatex' and `makevplain' to create + the LaTeX and plain formats, using new wrapper files + texmf/vtex/config/latex.fid and ./plain.fid. + +* Changed preload.cfg: + We read the default preload.ltx, instead of keeping a copy + of its code in our file. Thus, we won't lose any future + changes to preload.ltx. + +* \aliasfont commands for the XYpic fonts were moved from + preload.cfg to xypic.sty, so that they are executed on + demand only (i.e., they are no longer part of the LaTeX + format). NB: \aliasfont's are _not_ required, when XYpic + is used with plain TeX. + +* Bibtex and Makeindex programs renamed (again) to "vbibtex" + and "vmakeindex" with both OS/2 and Linux; large-capacity + Bibtex (OS/2 only, for the time being) + +* Font tools: pl2tf, tf2pl, vp2vf, vf2vp. (Note the + non-standard names, which will not clash with emTeX or + teTeX.) + + + +VTeX/Free 7.33 (2001-06-21) +--------------------------- + +* VTeX compiler v7.33d: PDF security options and xpdf + source specials are supported now. Some minor bug fixes + affect particularly the Linux port. + + Note that only the binaries archives, i.e. vtexlnx.zip and + vtex2.zip have changed! + + + +VTeX/Free 7.32 (2001-06-10) +--------------------------- + +* VTeX compiler v7.32: + + - CFF suppport leads to dramatically smaller PDF output. + - Many fixes re. font handling and EPS inclusion. + - PDF output will circumvent AR5 bugs. + - PNG, PCX and TARGA bitmap formats are supported with + OS/2 now. (However, no TIFF yet.) + +* Bibtex and Makeindex with recursive searching (OS/2 only, + for the time being). + +* LaTeX2e as of June 2000, Babel 3.7, hyperref 6.71e, latest + AMS-LaTeX, fancybox 1.3, PSNFSS 8.2 incl. mathpazo.sty (!) + +* Many interesting LaTeX packages, which were not available + for VTeX so far: draftcopy, changebar, pdfscreen, psfig + (for legacy documents), axodraw, Prosper. + +* dinbrief.cls (a goodie for our German customers, since + letter.cls is of no practical use for them :-) + +* Further new LaTeX packages: fancyhdr, supertabular, + mathcomp, lastpage, comment, truncate, + +* Certain files of the pstricks and psfrag bundles, which + are required for use with dvips, are included now + +* Updated hyphenation patterns and improved pattern loading + file: + + - New German patterns Rev.31. + - French patterns v2.9. + - Dutch patterns replaced by new `1996' version. + - Danish, Spanish and Portuguese patterns replaced by the + versions, which are `officially' recommended by the + particular TeX user groups. + +* Seminar and Prosper are now distributed as a ZIP file of + their own, which is independent from the rest of the + distribution. + +* Rearranged font map files, see also the decription in the + file texmf/doc/vtex/font-setup.txt: + + - euler,ali, hoekwater,ali, eurofont.ali, charter.ali and + utopia,ali have been merged into one single file named + misc.ali. + + - ifmath.ali tmmath.ali and hvmath.ali (excl. the records + for the Times and Helvetica text fonts!) have been + merged into one single file named micropress.ali. + + - The records for all Times and Helvetica text fonts have + been moved into map files of their own. Several + variants of these map files are provided, so that one + can easily configure, whether these fonts are to be + downloaded or not, and which version (URW, Adobe, + MicroPress) to chose. + +* The MarVoSym symbol font and the related macro package + marvosym.sty have been added. + +* Use of the LY1 font encoding is supported. + +* All of the AMS Cyrillic fonts in Type1 format are provided + now. + +* Fixed Type1 fonts: cmbsy5, cmbsy7, cmmib5, cmmib7. + +* The Type1 fonts for XYpic have been added. + +* Metrics and macros for the Concrete fonts have been added. + +* fancybox.sty moved from the Seminar directory to + tex/latex/misc + +* Improved LaTeX Local Guide + +* Installation instructions and LaTeX are no longer + distributed in German, because maintaining two version + requires too much work. (I'm sorry; after all, VTeX + comes for free :-) + +* The on-line documentation for PSTricks and Seminar is no + longer included, because it needs too much space and is + outdated, anyway. The packages are described in the + "LaTeX Graphics Companion", and the obsolete documentation + can still be downloaded from CTAN. + + + +VTeX/Free v7.10F (2000-08-27) +----------------------------- + +* VTeX compiler v7.10F with bug fixes and + enhanced hypertext facilities + +* Bibtex and Makeindex are included now + +* latest AMS-LaTeX (July 2000), hyperref (v6.70p1), + geometry (v2.3 with VTeX support) + +* plain TeX 3.1415926 + +* color & graphics support (miniltx) for plain TeX + +* enhanced LaTeX Local Guide + + + +VTeX/Free v7.00 (2000-05-12) +---------------------------- + +* PostScript mode is officially supported now + +* many bug fixes, particularly wrt/ EPS inclusion, font + handling and PostScript mode + +* inclusion of animated GIF's + +* memory for hyphenation patterns can grow dynamically now + +* new font setup, which is easier to configure and enables + easy installation of additional fonts. Ghostscript and + the related fonts are required now. + +* Latest LaTeX, Tools, Babel, hyperref etc. + +* PSNFSS 8.1 final release; all obliqued fonts are supported + via \aliasfont now + +* new packages: FoilTeX 2.1.3b with "landscape" support for + VTeX; soul.sty, geometry.sty + +* "Cyrillic" bundle and Russian hyphenation patterns added + (however, no cyrillic fonts yet) + +* the Charter and Utopia Type1 fonts are included. + +* added hyphenation patterns for British English + +* added metrics and style file for the CM-Bright fonts + +* more LaTeX documentation incl. a preliminary "Local Guide" + texmf/doc/vtex/local.eng & local.ger + +* VTeX documentation (vtex.pdf, gex.pdf, forms.pdf, + animgif.pdf) is now installed in texmf/doc/vtex + + + +VTeX/Free v6.68 (1999-12-12) +---------------------------- + +* TeX compiler is much faster now, primarily due to + directory caching. + +* GeX will support additional PS Level II features, e.g. + LZW compression. + +* Support for PDF Page Labels has been added. + +* Long file name support (-8 option) is now the default + behaviour with the OS/2 version. + +* The VTeX/Free system is now prepared for easy installation + of various additional PostScript fonts. + +* Use of the XYpic package with VTeX/Free is now fully + supported. + +* Use of the amsfonts and amssyb packages is now fully + supported; missing AMS fonts are internally emulated; no + more need to load the AMS styles with the [psamsfonts] + option. + +* Bug fixes, affecting the VTeX program as well as the use + of various packages with VTeX (seminar, XYpic, PSTricks) + +* Hyperref v6.67g + +* PSNFSS 8.1(b2) with minor fixes. + + +-- finis + diff --git a/systems/vtex/README b/systems/vtex/README new file mode 100644 index 0000000000..b0c50bbbbb --- /dev/null +++ b/systems/vtex/README @@ -0,0 +1,24 @@ +============================================================ + MicroPress VTeX/Free 8.44.2 + for Linux and OS/2 +============================================================ + 2005-02-08 + Walter Schmidt + vtexfree(at)gmx.net + + +OS/2: + Please see the "readme" file(s) in the ./os2 subdirectory. + You will need to download everything in ./os2 and + ./common. + +Linux: + Please see the "readme" file(s) in the ./linux + subdirectory. You will need to download everything in + ./linux and ./common. + +Solaris: + The Solaris port has been abandoned. + +== finis + diff --git a/systems/vtex/linux/readme-linux.eng b/systems/vtex/linux/readme-linux.eng new file mode 100644 index 0000000000..c0395d1912 --- /dev/null +++ b/systems/vtex/linux/readme-linux.eng @@ -0,0 +1,399 @@ +============================================================ +Installation instructions for VTeX/Free 8.44.2 on Linux x86 + ( = VTeX/Lnx 8.46a) +============================================================ + 2005-02-11 + Walter Schmidt + + + +Contents +-------- + What is VTeX/Lnx? + Prerequisites + Required files + Installing VTeX/Lnx + Deleting obsolete files + Installing the Adobe Euro fonts + Creating the LaTeX format file + Creating the plain TeX format file + Documentation + Known bugs + Support + Legal stuff + + + +What is VTeX/Lnx? +----------------- +VTeX/Lnx is a TeX program for Linux(x86) that generates PDF +or PostScript output immediately from the TeX source file. +It comes with a basic LaTeX system, including many +additional packages and fonts, as well as the Bibtex and +Makeindex programs. Plain TeX is also included. + +In contrast to traditional TeX systems, no intermediate DVI +files need to be generated, no "dvi driver programs" are +required, and there is no need to take care of their -- +sometimes fussy -- setup. + +In contrast to pdfTeX, VTeX includes a full PostScript +interpreter, so that inclusion of EPS images as well as +inline PostScript programming, i.e., PSTricks, psfrag etc. +are fully supported, + +The common PostScript and PDF viewers GSView and Adobe +Reader can be used for (pre)viewing and printing. + +Output files from VTeX are immediately suitable for public +distribution, e.g., over the WWW, since PostScript and PDF +are standardized document formats -- as opposed to the +TeX-specific DVI format. + +The VTeX engine supports the eTeX extensions. + + + +Prerequisites +------------- +VTeX/Lnx requires Linux on the Intel (x86) platfom and at +least 16Mb of physical memory. + +VTeX/Lnx is an ELF executable requiring the "glibc" +libraries. + +You must have installed Ghostscript, so as to provide a +PostScript and PDF reader. + +It is highly recommended to provide also Adobe Reader, +because this is the "canonical" PDF reader, and because +certain hypertext features of the PDF format are not +supported by Ghostscript. Make sure to use version 4.05 or +later! + +VTeX/Lnx is to be installed on an ext2 filesystem, because +it makes use of long file names. The complete TeX system +will require about 80MB of disk space. + +| VTeX/Lnx has been reported not to run on a freshly +| installed SuSE Linux 9.1. As a workaround put the +| following command into /etc/profile.local or into +| ~/.bashrc +| +| export LD_ASSUME_KERNEL=2.4.1 +| +| or, with the tcsh shell, say +| +| setenv LD_ASSUME_KERNEL 2.4.1 +| +| If you experience any further problems running VTeX/Lnx +| with your Linux, please, report to the maillist, so we +| can try to provide a workaround. + + + +Required files +-------------- + + vtexlnx-8442.zip + vtex-base-8442.zip + vtex-base2-8442.zip + vtex-special-8442.zip + vtex-fonts-8442.zip + vtex-fonts2.zip + vtex-doc-8422.zip + vtex-cbfonts.zip (optional) + vtex-gex.zip (optional) + vtex-koma.zip (optional) + vtex-sem.zip (optional) + +Remarks: + +vtex-gex.zip is unchanged since v7.320. vtex-fonts2.zip is +unchanged since v7.53. You need not download them once +again, if you have them already. + +vtex-cbfonts.zip contains the Greek Computer Modren fonts, +aka "CB fonts". Omit this archive, if you do not intend to +use them. + +vtex-gex.zip includes the documentation of VTeX's built-in +PostScript interpreter; omit this file, if you want. + +The archive vtex-koma.zip includes the "KOMA-Script" +document classes for use with LaTeX. In case you have +already installed these document classes yourself, or if you +don't intend to use them, omit this archive. + +The archive vtex-sem.zip includes the LaTeX packages seminar +and prosper; you need not install it, unless you actually +want to use these packages. + +Optional files can be installed later, by simply unpacking +the archives in directory /usr/local. + + + +Installing VTeX/Lnx +------------------- + +(0) + +Any installed version of VTeX _prior_ to 7.10 is to be +entirely removed. Later versions, however, can be updated +automatically. + + +(1) + +In case you are already running a previous version of +VTeX/Lnx and have customized the following configuration +files, you should back up the files now: + +/etc/vtex.ini +/usr/local/vtex/texmf/vtex/config/pdf.fm +/usr/local/vtex/texmf/vtex/config/ps.fm +/usr/local/vtex/texmf/vtex/config/hyphen.cfg +/usr/local/vtex/texmf/vtex/config/plain.cfg + +| They will be overwritten in course of the subsequent +| installation procedure; please, check your settings +| against the new files afterwards! + +| If you have previously installed the "CB fonts" package +| from , do not add the +| record for cb.ali to the .fm files again. +| Rationale: Records for the CB fonts are now part of the +| default configuration, see the file cm.ali. + + +(2) + +Unzip vtexlnx.zip in the directory /usr/local/vtex. +[Create, this directory, if it does not yet exist + + cd /usr/local + mkdir vtex +] + cd vtex + unzip /vtexlnx-8442 + +Doing so will create several subdirectories: When updating +a previously installed VTeX, the unzip program will ask you +whether to overwrite existing files: Enter "A" (i.e, "all +files"). This holds also for the next step. + +| Alternatively, you may install VTeX in a different +| directory than /usr/local. In this case, notice +| subsection (6) below! + + +(3) + +Unzip the remaining ZIP files in the directory +/usr/local/vtex: + + unzip /vtex-base-8442 + unzip /vtex-base2-8442 + unzip /vtex-special-8442 + unzip /vtex-fonts-8442 + unzip /vtex-doc-8442 + unzip /vtex-fonts2 + unzip /vtex-cbfonts + unzip /vtex-gex + unzip /vtex-koma + unzip /vtex-sem + +Doing so will create a directory named texmf with several +subdirectories. + + +(4) +When installing over a previous release, certain obsolete +files may not be overwritten automatically during the above +steps, because they reside in other directories now or have +been renamed or abolished. They need to be deleted manually +now. + +Make sure that /usr/local/vtex is still the current +directory; then execute the Makefile install/cleanup.lnx +there: + + make -f install/cleanup.lnx + + +(5) +When VTeX/Lnx is installed for the first time, copy vtex.ini +from /usr/local/vtex/install to the directory /etc. This is +the main configuration file, which can be customized -- see +section 2.2 of the VTeX/Free manual. Do not remove the +unchanged "template" from the vtex/install directory! + + +(6) +In case you have installed VTeX in a different directory +than /usr/local, you need either + + to create a link /usr/local/vtex -> /your_install_dir/vtex + +or + + edit the files etc/vtex.ini and texmf/vtex/config, and + replace every occurrence of /usr/local with the absolute + path to your install directory; note that you cannot use + environment variables such as $HOME in these files. + + +(7) + +When VTeX/Lnx is installed for the first time: +Add /usr/local/vtex/bin to your $PATH . + + +(8) +Make sure that all of the texmf directory tree is readable +for everyone: + + chmod -R a+r /usr/local/vtex/texmf/* + + + + +Creating the LaTeX format file +------------------------------ +Open a command line shell in an arbitrary working directory +(however, not inside the TeX directory tree) and execute the +following shell script: + + makevlatex + +You should move the log file latex.log to the directory +/usr/local/vtex/fmt, so as to store it with the format file. + +If there is a complaint in the log file about "BAD file +texsys.aux", then you have to delete any file texsys.aux +which may exist + + in the current directory, + or in the directory /usr/local/vtex/texmf/tex/latex/base + or in the directory /usr/local/vtex/texmf/vtex/config + +and try again. + +Make sure that the generated format file is readable for +everyone: + + chmod -R a+r /usr/local/vtex/fmt/* + +Now you should check, whether the installation works: Run +the file ltxcheck.tex through LaTeX, thus making sure that +the installation works. The file resides in the directory +texmf/source/latex/base. Switch to this directory + + cd /usr/local/vtex/texmf/source/latex/base + +and execute the following command: + + vlatex ltxcheck + +This will produce a number of messages, each of which should +be "OK". + + + +Creating the plain TeX format file +---------------------------------- +Omit this step, if you don't know what "plain TeX" is! + +Execute the following command in an arbitrary working +directory (however, not inside the TeX directory tree): + + makevplain + +You should move the log file plain.log to the directory +/usr/local/vtex/fmt, so as to store it with the format file. +Make sure that the generated format file is readable for +everyone: + + chmod -R a+r /usr/local/vtex/fmt/* + + + +Documentation +------------- +See the files in the directory texmf\doc\vtex: + +local.eng Preliminary LaTeX Local Guide + (READ THIS FIRST!) +plain.eng plain TeX Local Guide + (ignore it, if you don't know + what "plain TeX" is) +vtex.pdf The VTeX/Free manual +etex_man.pdf eTeX manual +gex.pdf GeX Manual +mm_man.pdf How to use MM fonts with VTeX +forms.pdf How to use PDF forms from TeX +animgif.pdf How to include animated GIFs into + PDF documents +examples/* Sample documents + +The sample file tryanim.tex and part of the examples in the +document animgif.pdf may not work with Acrobat Reader 5 or +later, due to the "features" of the latest Acrobat. They +do, however, work with Acrobat 4 and (almost) with Acrobat +Reader 3 on OS/2. + + +Known bugs and problems +----------------------- +The Bibtex and Makeindex programs cannot search recursively +for database and style files (.bst, .bib, .ist). However, +all such files that come with the distribution, _are_ found. +Note that this affects only the Linux version! + + + +Support +------- +The NTG hosts a mailing list that can be used both to ask +questions and to report bugs in the software and/or +installation. The list has a web interface for subscribing, +unsubscribing, accessing the archives etc: + + + + + +Legal stuff +----------- +MicroPress and VTeX are trademarks of MicroPress, Inc. +The MicroPress' components of the VTeX/Lnx distribution are + + Copyright (C) 1998--2005 by MicroPress Inc. + +The MicroPress' components of the VTeX/Lnx distribution are +free for personal use, subject to the following restriction: +Redistribution is allowed only as a part of the complete +VTeX/Lnx system, and only if all of the following files +remain unchanged and are distributed as a whole: + + readme-linux.eng + vtexlnx-8442.zip + vtex2-8442.zip + vtex-base-8442.zip + vtex-base2-8442.zip + vtex-special-8442.zip + vtex-fonts-8442.zip + vtex-fonts2.zip + vtex-doc-8422.zip + vtex-cbfonts.zip + vtex-gex.zip + vtex-koma.zip + vtex-sem.zip + + +Adobe, Acrobat and PostScript are trademarks of Adobe +Systems Incorporated. + + +== finis diff --git a/systems/vtex/os2/readme-os2.eng b/systems/vtex/os2/readme-os2.eng new file mode 100644 index 0000000000..03c8baa5b2 --- /dev/null +++ b/systems/vtex/os2/readme-os2.eng @@ -0,0 +1,370 @@ +============================================================ + Installation instructions for VTeX/Free 8.44.2 on OS/2 + ( = VTeX/2 8.44b) +============================================================ + 2005-02-11 + Walter Schmidt + +Contents +-------- + What is VTeX/2? + Prerequisites + Installing VTeX/2 over emTeX/TDS + Required files + Installing VTeX/2 + What to do, if the installation fails ? + Installing the Adobe Euro fonts + Creating the LaTeX format file + Creating the plain TeX format file + Documentation + Using the EPM TeX Front End with VTeX/2 + Support + Legal stuff + + + +What is VTeX/2 ? +---------------- +VTeX/2 is an eTeX program for OS/2 Warp to generate PDF or +PostScript output immediately from the TeX source file. It +comes with a basic LaTeX system, including many additional +packages and fonts, as well as the Bibtex and Makeindex +programs. Plain TeX is also included. + +In contrast to traditional TeX systems, no intermediate DVI +files need to be generated, no "dvi driver programs" are +required, and there is no need to take care of their -- +sometimes fussy -- setup. + +In contrast to pdfTeX, VTeX includes a full PostScript +interpreter, so that inclusion of EPS images as well as inline +PostScript programming, i.e. PSTricks, psfrag etc. are +fully supported, + +The common PostScript and PDF viewers GSView and Adobe +Reader can be used for (pre)viewing and printing. + +Output files from VTeX are immediately suitable for public +distribution, e.g., over the WWW, since PostScript and PDF +are standardized document formats -- as opposed to the +TeX-specific DVI format. + +The VTeX engine supports the eTeX extensions. + +VTeX/2 can either be installed as a standalone LaTeX system +or on top of an existing emTeX/TDS system, version 0.56. + + + +Prerequisites +------------- +* VTeX/2 requires Warp 3 or better, and at least 16Mb of +physical memory. + +* You should have installed Ghostscript, so as to provide a +PostScript and PDF reader. + +* It is highly recommended to provide also Acrobat Reader, +because this is the "canonical" PDF reader, and because +certain hypertext features of the PDF format are not +supported by Ghostscript. + +* The VTeX/2 is to be installed on a HPFS drive, because it +will make use of long file names. The complete TeX system +will require about 80MB of disk space. + +| The installation program requires the default OS/2 command +| shell CMD.EXE, i.e. there is absolutely no guarantee, that +| it works with any alternative shell such as 4OS2. + + +Installing VTeX/2 over emTeX/TDS +-------------------------------- +VTeX/2 can be installed as a stand-alone TeX system or "on +top" of an existing emTeX/TDS, provided that you have got +the latest emTeX7DS version 0.56. + +If you install VTeX/2 on the same drive as an existing +emTeX/TDS, they will share the same TeX directory tree, +thus saving lots of disk space. Also installing of VTeX +will update many components of your emTeX system. + +If you keep VTeX and emTeX on different drives, they will be +completely independent. + +| After installing VTeX over emTeX/TDS 0.56, you _must_ +| re-make the emTeX format files. +| +| Furthermore, you _must_ change the environment variable +| TEXCONFIG so as to comply with the latest TDS +| specifications: +| +| TEXCONFIG=C:\TEXMF\DVIPS!!;C:\TEXMF\FONTS\MAP\DVIPS;C:\TEXMF\FONTS\ENC\DVIPS +| +| (Replace "C:" with the letter of the volume where you have +| actually installed emTeX.) + + +Installing VTeX/2 over emTeX/TDS will update the font map +files psfonts.map and cmfonts.map, so that dvips can use the +additional Type1 fonts that come with VTeX -- except for the +EC/TC and the Hebrew fonts of the ArabTeX system, which work +with VTeX only. + + + +Required files +-------------- + + vtexinst.cmd (installation program) + vtex2-8442.zip + vtex-base-8442.zip + vtex-base2-8442.zip + vtex-special-8442.zip + vtex-fonts-8442.zip + vtex-fonts2.zip + vtex-doc-8422.zip + vtex-cbfonts.zip (optional) + vtex-sem.zip (optional) + vtex-gex.zip (optional) + vtex-koma.zip (optional) + +Remarks: + +vtex-gex.zip is unchanged since v7.320. vtex-fonts2.zip is +unchanged since v7.53. You need not download them once +again, if you have them already. + +vtex-cbfonts.zip contains the Greek Computer Modren fonts, +aka "CB fonts". Omit this archive, if you do not intend to +use them. + +vtex-gex.zip includes the documentation of VTeX's built-in +PostScript interpreter; omit this file, if you want. + +The archive vtex-koma.zip includes the "KOMA-Script" +document classes for use with LaTeX. In case you have +already installed these document classes yourself, or if you +don't intend to use them, omit this archive. + +The archive vtex-sem.zip includes the LaTeX packages seminar +and prosper; you need not install it, unless you actually +want to use these packages. + +Optional files can be installed later, by simply unpacking +the archives in the root directory of the drive where VTeX/2 +is installed. + + + +Installing VTeX/2 +----------------- + +(0) +Any existent version of VTeX _prior_ to 7.10 must be deleted +manually. Later versions can be updated automatically. + +(1) +Put the installation program vtexinst.cmd and all required +ZIP files (see above) into a temporary directory. The +contents of this directory can be removed, once the +installation is completed. + +(2) +Go to the above directory; then start the installation +program "vtexinst". (Note that vtexinst CANNOT be executed +from a different directory!) + +When the program asks you, for the version of VTeX/2 to +install, enter: + + 8.44.2 + +You will also be asked for the drive where VTeX is to be +installed or updated. It will be installed in the +directories \vtex and \texmf of that drive. + +Note that the configuration program will update various +configuration files: + + \texmf\vtex\config\hyphen.cfg + \texmf\vtex\config\plain.cfg + \vtex\bin\vtex.ini (*) + \texmf\vtex\config\ps.fm (*) + \texmf\vtex\config\pdf.fm (*) + +The files marked by (*) are updated only if your previous +version of VTeX was < 8.44. + +Existing configuration files are always backed up, with the +extension ".sav" appended to the original name. If you have +customized them, don't forget to check your changes against +the updated instances! + +| If you have previously installed the "CB fonts" package +| from , you must delete the +| record for cb.ali from the .fm files now (unless the files +| are updated, enyway.) +| Rationale: Records for the CB fonts are now part of the +| default configuration, see the file cm.ali. + + +(3) +VTeX/2 requires the following settings in the system +configuration file config.sys of OS/2: + + PATH must include :\VTEX\BIN + LIBPATH must include :\VTEX\DLL + +(Replace with the letter of the drive, where VTeX/2 +is actually installed.) + +The installaton program can modify config.sys appropriately; +however, it will _not_ do so without asking you before, and +you may chose to edit config.sys manually. + +| Do _not_ forget to reboot OS/2, after any changes to +| config.sys have been made! + + + +What to do, if the installation fails ? +--------------------------------------- + +The installation program should tell you about the reason +of the error; just read what it writes to the screen. Maybe +it is something you can fix, e.g., one of the required files +might be missing. + +If you don't understand the message at all, or if the reason +of the failure seems to be outside your responsibility, you +may ask me for help: The installation program will generate +a transcript file named vtexinst.log. Please, send this +file, together with a verbal description of the problem to + + + + +Creating the LaTeX format file +------------------------------ +Open an OS/2 comand line in an arbitrary directory and +execute the following command: + + makevlatex + +If there are any error messages, you should check the log +file, which is created in the directory \vtex\fmt. + +Now you should check, whether the installation works: Run +the file ltxcheck.tex through LaTeX, thus making sure that +the installation works. The file resides in the directory +\texmf\source\latex\base. Switch to this directory + + cd \texmf\source\latex\base + +and execute the following command: + + vlatex ltxcheck + +This will produce a number of messages, each of which should +be "OK". + + + +Creating the plain TeX format file +---------------------------------- +Omit this step, if you don't know what "plain TeX" is! + +Open an OS/2 comand line in an arbitrary working directory +and execute the following command: + + makevplain + +If thee are any error messages, you should check the log +file, which is created in the directory \vtex\fmt. + + + +Documentation +------------- +See the files in the directory texmf\doc\vtex: + +local.eng Preliminary LaTeX Local Guide + (READ THIS FIRST!) +plain.eng plain TeX Local Guide + (ignore it, if you don't know + what "plain TeX" is) +vtex.pdf The VTeX/Free manual +etex_man.pdf eTeX manual +gex.pdf GeX Manual +mm_man.pdf How to use MM fonts with VTeX +forms.pdf How to use PDF forms from TeX +animgif.pdf How to include animated GIFs into + PDF documents +examples\* Sample documents + +The sample file tryanim.tex and part of the examples in the +document animgif.pdf may not work with Acrobat Reader 5 or +later, due to the "features" of the latest Acrobat. They +do, however, work with Acrobat 4 and (almost) with Acrobat +Reader 3 on OS/2. + + + +Using the EPM TeX Front End with VTeX/2 +--------------------------------------- +The EPM TeX Front End is a powerful integrated TeX +environment, based on the OS/2 editor EPM; see + + + +In conjunction with VTeX/2 v8.44 it is highly recommended to +use the latest version 4.x of the TeX Front End! + + + +Support +------- +The NTG hosts a mailing list that can be used both to ask +questions and to report bugs in the software and/or +installation. The list has a web interface for subscribing, +unsubscribing, accessing the archives etc: + + + + + +Legal stuff +----------- +MicroPress and VTeX are trademarks of MicroPress, Inc. +The MicroPress' components of the VTeX/Lnx distribution are + + Copyright (C) 1998--2005 by MicroPress Inc. + +The MicroPress' components of the VTeX/2 distribution are +free for personal use, subject to the following restriction: +Redistribution is allowed only as a part of the complete +VTeX/2 system, and only if all of the following files remain +unchanged and are distributed as a whole: + + + readme-os2.eng + vtexinst.cmd + vtex2-8442.zip + vtex-base-8442.zip + vtex-base2-8442.zip + vtex-special-8442.zip + vtex-fonts-8442.zip + vtex-fonts2.zip + vtex-doc-8422.zip + vtex-cbfonts.zip + vtex-sem.zip + vtex-gex.zip + vtex-koma.zip + + +Adobe, Acrobat and PostScript are trademarks of Adobe +Systems Incorporated. + + +== finis diff --git a/systems/vtex/os2/vtexinst.cmd b/systems/vtex/os2/vtexinst.cmd new file mode 100644 index 0000000000..d853d33b33 --- /dev/null +++ b/systems/vtex/os2/vtexinst.cmd @@ -0,0 +1,822 @@ +/* REXX */ +/* + vtexinst.cmd, version 2 + + Copyright (C) 2001--2005 Walter Schmidt, Erlangen + + VTeX/2 installation program + + to be run from a local directory, + which must contain all required files + +*/ + +/* Load REXXUTIL */ +ret = RxFuncAdd("SysLoadFuncs", "REXXUTIL", "SysLoadFuncs") +call SysLoadFuncs + +/* Load text strings for SysFileDel and SysRmDir return codes. */ +CALL LoadDELRCText /* provides text strings for SysFileDel return codes */ +CALL LoadRDRCText /* provides text strings for SysRmDir return codes */ + + + +/* + Initialization + -------------- +*/ + +/* This distribution */ +SCRIPTVERSION = 8.442 /* version of the installation program */ +EMTEX=0.56 /* matching version of emTeX/TDS */ +INTRO = 'Installation program for VTeX/2 ' || SCRIPTVERSION || ' and later' +OBSOLETE = 'vtex/install/obsolete.os2' /* list of obsolete files */ + +OLDVERSION = 8.440 +/* FM and INI files of this version can be used still. */ +/* Also, the EC fonts are not reinstalled, when this verson is present, */ +/* and "full reinstall" is not selected. */ + + +/* The files in the distribution: */ + +/* number of version-dependent files*/ +varfile.0 = 6 + +/* number of version-independent files */ +fixedfile.0 = 1 + +/* number of optional files (which must be version-independent, too) */ +optfile.0 = 4 + +varfile.1 = "vtex2" +varfile.2 = "vtex-doc" +varfile.3 = "vtex-special" +varfile.4 = "vtex-fonts" +varfile.5 = "vtex-base" +varfile.6 = "vtex-base2" + +fixedfile.1 = "vtex-fonts2.zip" + +optfile.1 = "vtex-gex.zip" +optfile.2 = "vtex-sem.zip" +optfile.3 = "vtex-koma.zip" +optfile.4 = "vtex-cbfonts.zip" + + +/* the name of the file, where the version info will be stored */ +VERSIONFILE = "\vtex\install\VERSION" + + +/* query boot volume */ +bootdrv = querybootdrv() +if bootdrv = '' then signal nobootdrv + +/* query working directory */ +wrkdir = strip(directory(), "T", "\") + +/* start writing the log file */ +logfile = wrkdir || "\vtexinst.log" +rc = sysfiledelete(logfile) +if rc > 2 then signal logfileerr + +call wlog 'vtexinst ' || SCRIPTVERSION +call wlog date() time() +call wlog 'OS/2:' SysOS2Ver() +call wlog 'Shell:' value("OS2_SHELL", , "OS2ENVIRONMENT") +call wlog 'Boot drive =' bootdrv +call wlog 'Working directory = "' || wrkdir || '"' +call wlog 'PATH = "' || VALUE("PATH", , "OS2ENVIRONMENT") || '"' +call wlog 'Unzip program = "' || SysSearchPath("PATH", "unzip.exe") || '"' + +/* Ask for the drive where to install or update VTeX */ +say +say INTRO +say +say "Which version of VTeX/2 do you want to install?" +answer = linein() +call wlog 'Requested version: ' || '"' || answer || '"' +parse value answer with major '.' minor '.' subver +if (major='' or minor='') then signal versionerr +versionid = major|| minor || subver +newver = major || '.' || minor || subver +if newver < SCRIPTVERSION then signal tooold +else +call wlog 'New version ID:' newver +say "On which volume (drive) do you want VTeX/2 to be installed or updated?" +say "(hit only to select the boot volume)" +answer = linein() +texdrive = translate(substr(answer,1,1)) || ":" +if texdrive = ":" then texdrive = bootdrv +call wlog 'VTeX volume = "' ||texdrive|| '"' + + +/* determine version of existing VTeX */ +ver = SysIni(texdrive || VERSIONFILE, "VTEX2", "VERSION") +if ver = "ERROR:" then do + if stream(texdrive||"\texmf\vtex\config\psfig.sty", "C", "QUERY EXISTS") <> "" then + ver = 7.32 + else + ver = 0 +end +say +if ver > 7.32 then say "VTeX version " || ver || " detected on volume " || texdrive +call wlog 'Current version ID =' ver +if ver > newver then signal toonew + + +/* force full re-install ? */ +if ver >= OLDVERSION then do + say + say "By default, your VTeX/2 system will be updated only." + say "However, you may also force a full reinstall, e.g.," + say "in case the current installation is corrupt." + say + say "Do you request a full reinstall? (y/n)" + answer = translate(substr(linein(),1,1)) + if answer = "Y" then do + ver = 0 + call wlog 'Full install requested' + end +end + + +/* search for emTeX/TDS on the same drive */ +emtexver = SysIni(texdrive"\texmf\emtex\data\EMTEXTDS.INI", "EMTEXTDS", "VERSION") +if emtexver <> "ERROR:" then do + say + say "emTeX/TDS version" emtexver "detected." + call wlog 'Current emTeX =' emtexver + if emtexver < EMTEX then signal oldemtex +end + + +/* determine the actual names of the required ZIP files */ +/* and make sure they exist */ +res = 1 +if ver < newver then do + do i = 1 to varfile.0 + varfile.i = varfile.i || '-' || versionid || '.zip' + call wlog 'Required: ' varfile.i + if (stream(varfile.i, "C", "QUERY EXISTS") = "") then do + res = 0 + call wlog 'missing file:' varfile.i + say "missing file:" varfile.i + end + end +end +if ver < OLDVERSION then do + do i = 1 to fixedfile.0 + call wlog 'Required: ' fixedfile.i + if (stream(fixedfile.i, "C", "QUERY EXISTS") = "") then do + res = 0 + call wlog 'missing file:' fixedfile.i + say "missing file:" fixedfile.i + end + end +end + +if res <> 1 then signal fileerr + + +/* Last exit */ +say +say "VTeX/2 on volume " || texdrive || " will be installed/updated." +say "Continue? (y/n)" +answer = translate(substr(linein(),1,1)) +if answer <> "Y" then signal cancel + + + +/* + Go to the target drive + ---------------------- +*/ +call setlocal +call directory(texdrive||"\") +call wlog 'current directory changed to' directory() +call wlog ' ' + + + +/* + Unpack the ZIP archives + ----------------------- +*/ +vtex: + +SIGNAL on error name unziperr + +/* overwrite existing files by default */ +ret=value("UNZIP", "-qqo", "OS2ENVIRONMENT") + +/* unzip the required files: */ +if ver < newver then do + /* back up existing configuration files first */ + call saveconfig("\vtex\bin\vtex.ini") + call saveconfig("\texmf\vtex\config\hyphen.cfg") + call saveconfig("\texmf\vtex\config\plain.cfg") + call saveconfig("\texmf\vtex\config\pdf.fm") + call saveconfig("\texmf\vtex\config\ps.fm") + do i = 1 to varfile.0 + varfile.i = wrkdir || "\" || varfile.i + call wlog "unzip " || varfile.i + "unzip " || varfile.i + end + say "New configuration files \texmf\vtex\config\hyphen.cfg and .\plain.cfg installed." + call wlog "New configuration files \texmf\vtex\config\hyphen.cfg and .\plain.cfg installed." +end +if ver < OLDVERSION then do + do i = 1 to fixedfile.0 + fixedfile.i = wrkdir || "\" || fixedfile.i + call wlog "unzip " || fixedfile.i + "unzip " || fixedfile.i + end +end + +/* unzip optional files, if present */ +do i = 1 to optfile.0 + optfile.i = wrkdir || "\" || optfile.i + if stream(optfile.i, "C", "QUERY EXISTS") <> "" then do + call wlog "unzip " || optfile.i + "unzip " || optfile.i + end +end + +SIGNAL on error + + + +/* + Removing obsolete files created by previous versions + ---------------------------------------------------- +*/ +if ver < newver then do + say "Removing possibly obsolete files..." + do while lines(OBSOLETE) > 0 + l = strip(linein(OBSOLETE)) + if l \= '' then do + if substr(l, length(l), 1) = "\" then do + l = substr(l, 1, (length(l)-1)) + call wlog "Trying to delete directory" l + call ddt(l) + end + else do + call wlog "Trying to delete file" l + call SysFileDelete(l) + end + end + end + say " ...done." +end + + + +/* + Writing the version number + -------------------------- +*/ +writever: +ret = SysIni(texdrive || VERSIONFILE, "VTEX2", "VERSION", newver) +say +if ret = "" then do + call wlog "version number" newver "written" + say "Version number" newver "written." +end +else do + call wlog "Writing version number failed with rc =" ret + say "Writing the version number failed." +end + + +cfgfiles: +call wlog ' ' +say + + + +/* + Restore FM and INI files or configure the new ones + -------------------------------------------------- +*/ + +if ver < OLDVERSION then do + /* FM files: */ + call readconfig "\texmf\vtex\config\pdf.fm" + call fmedit texdrive + config.1 = '% pdf.fm, for PDF mode, created by vtexinst ' date() time() + call writeconfig "\texmf\vtex\config\pdf.fm" + /* we just hope that writing of the file was successful... */ + call readconfig "\texmf\vtex\config\ps.fm" + call fmedit texdrive + config.1 = '% ps.fm, for PS mode, created by vtexinst ' date() time() + call writeconfig "\texmf\vtex\config\ps.fm" + /* we just hope that writing of the file was successful... */ + say "New configuration files \texmf\vtex\config\pdf.fm and .\ps.fm installed." + call wlog "New configuration files \texmf\vtex\config\pdf.fm and .\ps.fm installed." + /* configure INI file: */ + if texdrive <> "c:" then do + call readconfig "\vtex\bin\vtex.ini" + call iniedit texdrive + call writeconfig "\vtex\bin\vtex.ini" + /* we just hope that writing of the file was successful... */ + end + say "New configuration file \vtex\bin\vtex.ini installed." + call wlog "New configuration file \vtex\bin\vtex.ini installed." +end +else do +/* restore FM and INI files: */ + call restconfig("\texmf\vtex\config\pdf.fm") + call restconfig("\texmf\vtex\config\ps.fm") + call restconfig("\vtex\bin\vtex.ini") +end + +say +"@pause" + + +/* + Updating config.sys + ------------------- +*/ + +/* Skip this step, if PATH includes vtex already */ +/* In this case we assume that LIBPATH is ok, too. */ + +p = value("PATH", , "OS2ENVIRONMENT") +if substr(p, length(p), 1) <> ";" then p = p || ";" +call wlog ' ' +call wlog 'PATH = "' || p || '"' +if pos(texdrive||"\VTEX\BIN;", translate(p)) <> 0 then signal done + +say +say "The installation program is going to update the file config.sys now." +say "If you prefer to do this manually, then enter `n' below," +say "otherwise enter `y' to continue." +say "Continue? (y/n)" +answer = translate(substr(linein(),1,1)) +if answer <> "Y" then signal done + +call wlog 'updating config.sys' + +/* make sure that config.sys can be found */ +configfile = bootdrv||"\config.sys" +if stream(configfile,"C","QUERY EXISTS") = "" then signal noconfig + +call readconfig configfile +if pathedit("PATH", texdrive||"\vtex\bin;") = 0 then signal updfailed +if libpathedit(texdrive||"\vtex\dll;") = 0 then signal updfailed + +tempfile=SysTempFileName(bootdrv||"\config??.sys") +if tempfile="" then signal updfailed + +signal on error name updfailed +savedfile = filespec("N", tempfile) +"@ren" configfile savedfile +say +say "The file" configfile "has been renamed to" savedfile "." +call wlog configfile ' renamed to ' savedfile + +res = writeconfig(configfile) +if res=0 then do + call beep 440,250 + say "Writing a new file" configfile "failed". + say "Rename" savedfile "to config.sys and apply the changes manually." + call wlog 'Writing new' configfile 'failed.' + end +else do + say + say "A new file" configfile "has been written." + say "Shutdown and reboot OS/2 now to make the changes come into effect." + call wlog 'New config.sys created.' +end + + +/* + exiting +*/ +done: +call wlog 'Finis.' +say +say "Finis." +say "Do not forget to generate (new) format files now!" +exit + + +/* + Error handling: +*/ +logfileerr: +say +say "Error: I cannot write to the file" logfile "." +exit + +versionerr: +say +say "The installation program cannot proceed," +say "because you have specified an invalid version number," +exit + +toonew: +say +say "The version of VTeX/2 found on your PC is already newer" +say "than the version you have requested to install." +call wlog 'Existing VTeX/2 is newer than the version to be installed.' +exit + +tooold: +say +say "This version of the installation program is not suitable" +say "for VTeX/2 prior to version" SCRIPTVERSION +say +exit + +oldemtex: +call wlog 'Obsolete emTeX found.' +say +say "You cannot install VTeX/2" newver "over emTeX prior to" EMTEX +exit + +nobootdrv: +call wlog 'Could not locate boot volume.' +say +say "The installation program cannot proceed," +say " because the boot partition cannot be located." +say "VTeX/2 could not be installed." +exit + +noconfig: +call wlog 'Could not locate config.sys.' +say +say "The installation program could not locate the file config.sys" +say "and was unable to determine whether it needs to be updated." +say "Please, see the installation instructions for the required changes" +say "and how to apply them manually." +exit + +updfailed: +call wlog 'Updating config.sys failed.' +say +say "Updating config.sys failed for unknown reason." +say "The file config.sys has *** not *** been changed." +say "Please, read the installation instructions" +say "and apply any changes manually." +exit + +error: +call wlog 'Error: "'condition('D')'"' 'failed.' +call beep 440,250 +say +say 'Error: "'condition('D')'"' 'failed.' +say 'VTeX/2 could not be installed successfully.' +exit + +fileerr: +call wlog 'Required file(s) not found.' +call beep 440,250 +say +say "One or more of the files required to" +say "install or update VTeX/2" newver "were not found." +say "VTeX/2 could not be installed." +exit + +unziperr: +call wlog '"unzip" failed.' +call beep 440,250 +say +say 'The program "unzip" failed or was not found.' +say 'VTeX/2 could not be installed.' +exit + +cancel: +call wlog 'Terminated by the user.' +say "You have terminated the installation program." +exit + + +/* + Procedures used above: +*/ + + +/* + query boot drive + usage: querybootdrv() + returns: letter of boot drive incl. colon +*/ +querybootdrv: PROCEDURE +bootdr = value('COMSPEC', , 'OS2ENVIRONMENT') +bootdr = filespec('D', bootdr) +if bootdr = "" then do + say "Please, tell me the letter of the boot volume:" + answer = linein() + bootdr = substr(strip(answer),1,1)||":" +end +return bootdr + + + +/* + save file by appending .sav to the name + usage: call saveconfig file + returns: 1 if succesful +*/ +saveconfig: PROCEDURE expose logfile +parse arg file +start = lastpos("\", file) + 1 +if start > 1 then do + len = length(file) - start + 1 + stem = substr(file, start, len) +end +else + stem = file + +if (stream(file, "C", "QUERY EXISTS") <> '') then do + "@copy" file file||".sav" + call wlog "Configuration file" file "saved as" stem||".sav ." + return 1 +end +else + return 0 + + +/* + restore saved file + usage: call restconfig file + returns: 1 if successful +*/ +restconfig: PROCEDURE expose logfile +parse arg file +if (stream(file||".sav", "C", "QUERY EXISTS") <> '') then do + "@copy" file||".sav" file + call wlog "Configuration file" file "restored." + return 1 +end +else + return 0 + + + +/* + read config file + usage: call readconfig filename + returns: (nothing) +*/ +readconfig: PROCEDURE expose config. cmax +parse arg infile +cmax=0 +do while lines(infile) > 0 + cmax=cmax+1 + config.cmax=linein(infile) +end /* do */ +call stream infile, "C", "CLOSE" +return + + +/* + write config file + usage: call writeconfig filename + returns: 1 if successful + 0 if writing the file failed +*/ +writeconfig: PROCEDURE expose config. cmax +parse arg outfile +call SysFileDelete outfile +do i = 1 TO cmax + if config.i <> "deleted" then do + res = lineout(outfile, config.i) + end +end /* do */ +call stream outfile, "C", "CLOSE" +if res <> 0 then return 0 +else return 1 + + +/* + edit a path + usage: pathedit(path, entry, op) + op = "D" means "delete this entry" + op = "A" (default) means "add entry" + returns 1 if successful + 0 if path or entry to be deleted not found + 2 if entry to be added was already present +*/ +pathedit: PROCEDURE expose config. cmax +parse arg rpath, rdirectory, rop +op = translate(rop) +path = strip(translate(rpath)) +trigger = " "||path||"=" +directory = translate(rdirectory) +i=0 +do forever + i=i+1 + if i>cmax then leave + posi = pos(trigger, translate(config.i)) + if posi > 1 then do + cmd = subword(translate(config.i), 1, 1) + if cmd = "SET" then leave + end +end /* do */ +if i>cmax then return 0 +setting = substr(config.i, (posi+length(trigger))) +setting = strip(setting) +if substr(directory,length(directory),1) <> ";" then directory = directory || ";" +if substr(setting,length(setting),1) <> ";" then setting = setting || ";" +if op="D" then do + posi = pos(directory,translate(setting)) + if posi<>0 then config.i= "SET " || path || "=" || delstr(setting, posi, length(directory)) + else return 0 +end /* do */ +else do + if pos(directory,translate(setting))<>0 then return 2 + else do + setting=setting || rdirectory + config.i = "SET " || path || "=" || setting + end /* do */ +end /* do */ +return 1 + + +/* + edit LIBPATH + usage: libpathedit(entry, op) + op = "D" means "delete this entry, if existing" + op = "A" (default) means "add entry" + returns: 1 if successful + 0 if LIBPATH or entry to be deleted not found + 2 if entry to be added was already present +*/ +libpathedit: PROCEDURE expose config. cmax +parse arg rdirectory, rop +directory = translate(rdirectory) +op = translate(rop) +i=0 +do forever + i=i+1 + if i>cmax then leave + posi = pos("LIBPATH=", translate(config.i)) + if posi = 1 then leave +end /* do */ +if i>cmax then return 0 +setting = substr(config.i, 9) +setting=strip(setting) +if substr(directory,length(directory),1) <> ";" then directory = directory || ";" +if substr(setting,length(setting),1) <> ";" then setting = setting || ";" +if op="D" then do + posi = pos(directory,translate(setting)) + if posi<>0 then config.i= "LIBPATH=" || delstr(setting, posi, length(directory)) + else return 0 +end /* do */ +else do + if pos(directory,translate(setting))<>0 then return 2 + else do + setting=setting || rdirectory + config.i = "LIBPATH=" || setting + end /* do */ +end /* do */ +return 1 + + + +/* + edit vtex,ini + usage: call iniedit drive + drive = drive letter of VTeX drive including colon + returns: 1 if successful + 0 otherwise +*/ +iniedit: PROCEDURE expose config. cmax +parse arg drive +drive = drive || "\" +default = "c:\" +i =0 +do forever + i=i+1 + if i>cmax then leave + start = 1 + do forever + j = pos(default, config.i, start) + if j=0 then leave + config.i = overlay(drive, config.i, j) + start = j+2 + end +end /* do */ +return 1 + + + +/* + edit FM file + usage: call fmedit drive + drive = drive letter of VTeX drive including colon + returns: 1 if successful + 0 otherwise +*/ +fmedit: PROCEDURE expose config. cmax +parse arg drive +i = 0 +ctrl =2 +do forever + i = i+1 + if i>cmax then leave + if pos('TEXMF = "c:/texmf/"', config.i) <> 0 then do + config.i = ' TEXMF = "'||drive||'/texmf/"' + ctrl = ctrl - 1 + end +end +/* exactly 2 matches must be found */ +if ctrl = 0 then return 1 +else return 0 + + + +/* + write message to log file +*/ +wlog: PROCEDURE expose logfile +parse arg string +rc = lineout(logfile, string) +return rc + + + +/* + Procedures for deleting a directory tree +*/ + +DDT: + parse arg user_dir + /* Check to make sure the directory exists */ + rc=SysFileTree(user_dir,dir_list, 'D') + IF dir_list.0 = 0 THEN + DO + SAY user_dir 'not found.' + RETURN + END + + DROP dir_list. + + /* Mark all the read-only files to be non read-only */ + rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO', '****','----') + + DROP dir_list. + + /* Go through the list of files and delete each one */ + rc=SysFileTree(user_dir || '\*.*', dir_list, 'FSO') + DO x = 1 TO dir_list.0 + rc = SysFileDelete(dir_list.x) + if rc <> 0 then SAY dir_list.x '........' DELRCText.RC + END + + DROP dir_list. + + /* Go through all the subdirectories and remove them. */ + /* We go backwards through the list in order to delete the */ + /* lowest level sudirectories first and work our way back up */ + /* the tree. */ + rc=SysFileTree(user_dir || '\*.*', dir_list, 'DSO') + DO x = dir_list.0 TO 1 BY -1 + rc=SysRmDir(dir_list.x) + if RC <> 0 then SAY dir_list.x '........' RDRCText.RC + END + + DROP dir_list. + + /* Delete the topmost directory */ + rc=SysRmDir(user_dir) + SAY user_dir '........' RDRCText.RC + +RETURN + +LoadDELRCText: + /* provides text strings for SysFileDel return codes */ + /* The return codes and strings are in the online Rexx manual */ + + DELRCText.0 = 'File deleted successfully. ' + DELRCText.2 = 'Error. File not found. ' + DELRCText.3 = 'Error. Path not found. ' + DELRCText.5 = 'Error. Access denied. ' + DELRCText.26 = 'Error. Not DOS disk. ' + DELRCText.32 = 'Error. Sharing violation. ' + DELRCText.36 = 'Error. Sharing buffer exceeded. ' + DELRCText.87 = 'Error. Invalid parameter. ' + DELRCText.206 = 'Error. Filename exceeds range error. ' +RETURN + +LoadRDRCText: + /* provides text strings for SysRmDir return codes */ + /* The return codes and strings are in the online Rexx manual */ + + RDRCText.0 = 'Directory removal was successful. ' + RDRCText.2 = 'Error. File not found. ' + RDRCText.3 = 'Error. Path not found. ' + RDRCText.5 = 'Error. Access denied. ' + RDRCText.16 = 'Error. Current Directory. ' + RDRCText.26 = 'Error. Not DOS disk. ' + RDRCText.87 = 'Error. Invalid parameter. ' + RDRCText.108 = 'Error. Drive locked. ' + RDRCText.206 = 'Error. Filename exceeds range error. ' +RETURN + +/* finis */ + -- cgit v1.2.3