%%
%% This file is part of the standard PSfrag bundle. It extracts the
%% files from psfrag2e.dtx to be installed in the TeX hierarchy.
%%
%% This file may not be changed unless it is distributed under a
%% different name, accompanied by a copy of the original file.
%% The author of the changes and their scope should be clearly
%% documented, so that questions can be distributed to the proper author.
%%
\def\batchfile{psfrag.ins}
\input docstrip
\preamble

Copyright (c) 1995 Craig Barratt and Michael C. Grant.
All rights reserved.

This file is part of the PSfrag package.

\endpreamble
\Ask\answer{%
   Can your system recognize long file names? Specifically,
^^Jcan it handle file extensions of more than three letters?
^^J(Unix can, MS-DOS cannot.) Please answer 'y' for yes and
^^J'n' for no below.}
\def\n{n}\def\no{no}
\keepsilent
\ifx\answer\no\def\wname{shortname}\else
\ifx\answer\n \def\wname{shortnames}\else
              \def\wname{longnames} \fi\fi
\generateFile{psfrag.sty}{f}{\from{psfrag.dtx}{package,dvips,\wname}}
\generateFile{epsf.sty}{f}{\from{psfrag.dtx}{epsf}}
\let\OldWritePreamble\WritePreamble
\def\WritePreamble{%
  \WriteOut{\perCent!PS-Adobe-3.0^^J%
            \perCent\perCent Title: \outFileName}
  \OldWritePreamble
  \WriteOut{\perCent\perCent EndComments}}
\def\WritePostamble{\WriteOut{\perCent\perCent EOF}}
\generateFile{ps2frag.ps}{f}{\from{psfrag.dtx}{psdriver}}
