
% \iffalse
%
% This file is part of the NFSS2 (New Font Selection Scheme) package.
% ------------------------------------------------------------------
%
% This file was contributed. In case of error please inform the
% original author.
%
% \fi

%%
%% This file will generate fast loadable files and documentation
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
%% 
%% This file is part of the PSNFSS2 package
%%
\def\batchfile{psextra.ins}
{\immediate\openin15 docstrip.tex
\ifeof 15
\newlinechar `@
\message{@@**************************************************@}
\message{* I can't find the file `docstrip.tex'.@}
\message{* @}
\message{* It is not in the search path for \noexpand\openin.@}
\message{* @}
\message{* This means that you either don't have the@}
\message{* DOC package MZ0 installed, or that your@}
\message{* installation doesn't have the same search path@}
\message{* for \noexpand\openin and \noexpand\input.@}
\message{* @}
\message{* In the latter case you need to copy `docstrip.tex'@}
\message{* to the current directory. Otherwise you have to@}
\message{* get the DOC package (MZ0) first.@}
\message{* @}
\message{* I'm giving up now.@}
\message{***************************************************@@}
\expandafter\aftergroup\csname @@end\expandafter\endcsname
\expandafter\aftergroup\csname end\expandafter\endcsname \fi
\ifx\firsttime\undefined\global\let\firsttime\relax\else
\ifx\currbatchFile\undefined
 \newlinechar `@
 \message{*** WHOA!!! I'm dying ...@}
 \message{*** Upgrade to a 
          new docstrip release v2.1a or higher !!!!!!@@}
 \message{*** This installation routine works only with the new@}
 \message{*** docstrip.tex program which is part of the doc@}
 \message{*** package (MZ0).@@}
 \message{Please install this package first.@@}
 \message{I'm giving up now.@}
 \endinput \csname @@end\endcsname \csname end\endcsname \fi \fi}
\input docstrip.tex
\preamble

Copyright (C) 1993 by Sebastian Rahtz
All rights reserved.

This file is part of the PSNFSS2 package.

^^J\def\string\betaout{\immediate\write16 }
^^J\string\betaout{***************************************************}
^^J\string\betaout{*\string\space\space This\string\space\space file
^^J\string\space\space is\string\space\space part\string\space\space 
^^Jof\string\space\space a\string\space\space 
^^J\space version\string\space\space of\string\space\space PSNFSS.}
^^J\string\betaout{***************************************************}
\endpreamble

\def\batchfile{psextra.dst}   % ignored in distribution
\input docstrip.tex           % ignored in distribution 


\Ask\answer{************************************************************
   ^^J* There are three possible ways to set up the font declaration 
   ^^J* files for PostScript fonts:
   ^^J* 
   ^^J*   1) use the fonts as is, with Adobe layout. This is not supported
   ^^J*      here
   ^^J* 
   ^^J*   2) use the old TeX encoding, with virtual fonts to change the
   ^^J*      layout 
   ^^J* 
   ^^J*   3) use the new Cork-encoding, which will need virtual fonts
   ^^J*      to change the layout, and some re-encoding in the font header.
   ^^J* 
   ^^J* Option 3) should be preferred because it will be compatible in
   ^^J* the long run with TeX, but for simplicity's sake you might prefer
   ^^J* option 2). You can now choose to install font files for 2),
   ^^J* 3), or both
   ^^J* 
   ^^J* Shall I use new Cork-encoding (c) or old TeX (o), or both (b)?
   ^^J*************************************************************}

\keepsilent

\Msg{*** Generating .fd files ***}

\preamble
Copyright (C) 1993 Sebastian Rahtz. All rights reserved.
This is a generated file for *PSNFSS*.  Permission is granted to to
customize the declarations in this file to serve the needs of your
installation.  However, no permission is granted to distribute a
modified version of this file under its original name.

I recommend that you copy the relevant portions of the original
source file into a private .fdd instead of modifying this file directly. 
\endpreamble

\Msg{*** Generating font defs for extra PostScript text fonts ***}

\def\GenerateFDs{
\generateFile{\codestyle T1mgm.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mgm}}
\generateFile{\codestyle T1mim.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mim}}
\generateFile{\codestyle T1mnp.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mnp}}
\generateFile{\codestyle T1mnt.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mnt}}
\generateFile{\codestyle T1mpi.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mpi}}
\generateFile{\codestyle T1mpp.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1mpp}}
\generateFile{\codestyle T1pbb.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pbb}}
\generateFile{\codestyle T1pgm.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pgm}}
\generateFile{\codestyle T1pgs.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pgs}}
\generateFile{\codestyle T1plc.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1plc}}
\generateFile{\codestyle T1plcs.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1plcs}}
\generateFile{\codestyle T1pnb.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pnb}}
\generateFile{\codestyle T1pop.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pop}}
\generateFile{\codestyle T1pun.fd}{f}{
        \from{psextra.fdd}{fd,\codestyle T1pun}}
}

\def\codestyle{O}
\def\canswered{c}
\def\oanswered{o}
\def\banswered{b}
\def\anything{n}
{\ifx\answer\canswered 
\Msg{*** Generating font defs for PostScript text fonts (T1) ***}
   \gdef\anything{y}
   \gdef\codestyle{}
   \GenerateFDs
\fi}
{\ifx\answer\oanswered 
\Msg{*** Generating font defs for PostScript text fonts (OT1) ***}
   \gdef\anything{y}
   \gdef\codestyle{O}
   \GenerateFDs
\fi}
{\ifx\answer\banswered 
\Msg{*** Generating font defs for PostScript text fonts (T1 and OT1) ***}
   \gdef\anything{y}
   \gdef\codestyle{O}
   \GenerateFDs
   \gdef\codestyle{}
   \GenerateFDs
\fi}


\Msg{*** Generating styles files for using extra PostScript fonts ***}

\generateFile{nfmtimes.sty}{f}{
        \from{psextsty.dtx}{style,nfmtimes}}
\generateFile{nfimpri.sty}{f}{
        \from{psextsty.dtx}{style,nfimpri}}
\generateFile{nfbembo.sty}{f}{
        \from{psextsty.dtx}{style,nfbembo}}
\generateFile{nfgaram.sty}{f}{
        \from{psextsty.dtx}{style,nfgaram}}
\generateFile{nfbaske.sty}{f}{
        \from{psextsty.dtx}{style,nfbaske}}

\Msg{*** Generate the documentation driver ***}

\preamble

Copyright (C) 1993 Sebastian Rahtz
All rights reserved.

This file is part of the PSNFSS2 package.
---------------------------------------

Permission is granted to modify this file for producing a different
layout. However, no permission is granted to distribute a modified
version of this file under its original name.

\endpreamble

\generateFile{psextra.drv}{f}{%
  \from{psextra.fdd}{driver}}


\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory searched by TeX:}
\Msg{*}
\Msg{* \space\space All *.fd, and *.sty}
\Msg{*}
\Msg{* To produce the documentation run the files ending with}
\Msg{* `.drv' through LaTeX.}
\Msg{***********************************************************}


\endinput



