%%
%% This file will generate fast loadable files and documentation
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
%% Copyright 1989-1996 Johannes L. Braams and any individual authors
%% listed elsewhere in this file.  All rights reserved.
%% 
%% For further copyright information see any other copyright notices
%% in this file.
%% 
%% This file is part of the Babel system, release 3.6.
%% ---------------------------------------------------
%%   This system is distributed in the hope that it will be useful,
%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%% 
%%   For error reports concerning UNCHANGED versions of this file no
%%   more than one year old, see bugs.txt.
%% 
%%   Please do not request updates from me directly.  Primary
%%   distribution is through the CTAN archives.
%% 
%% 
%% IMPORTANT COPYRIGHT NOTICE:
%% 
%% You are NOT ALLOWED to distribute this file alone.
%% 
%% You are allowed to distribute this file under the condition that it
%% is distributed together with all the files listed in manifest.txt.
%% 
%% If you receive only some of these files from someone, complain!
%% 
%% 
%% 
%% No other permissions to distribute this file in any form are
%% granted and in particular NO PERMISSION to modify its contents.
%% 
%% You are NOT ALLOWED to change this file.
%% 
%% 
%%
%% --------------- start of docstrip commands ------------------
%%
%% Copyright 1997 Johannes L. Braams
%%
%% This file is part of the `babel' system.
%%
%% You are allowed to distribute this file together with all files
%% mentioned in manifest.bbl.
%%
%% You are not allowed to modify its contents.
%%
\def\filedate{1997/01/09}
\def\batchfile{babel.ins}
\input docstrip.tex

{\ifx\generate\undefined
\Msg{**********************************************}
\Msg{*}
\Msg{* This installation requires docstrip}
\Msg{* version 2.3c or later.}
\Msg{*}
\Msg{* An older version of docstrip has been input}
\Msg{*}
\Msg{**********************************************}
\errhelp{Move or rename old docstrip.tex.}
\errmessage{Old docstrip in input path}
\batchmode
\csname @@end\endcsname
\fi}

% The following command will be added to dostrip in the next LaTeX
% release ...
\ifx\askonceonly\undefined
  \let\OriginalAsk\Ask
  \def\askonceonly{%
    \def\Ask##1##2{%
      \OriginalAsk{##1}{##2}%
      \global\let\Ask\OriginalAsk
      \Ask\noprompt{%
        By default you will be asked this question for every file.^^J%
        If you enter `y' now,^^J%
        I will asssume `y' for all future questions^^J%
        without prompting.}%
      \ifx\y\noprompt\let\noprompt\yes\fi
      \ifx\yes\noprompt\gdef\Ask####1####2{\def####1{y}}\fi}}
  }
\fi
%% This is the preamble that will be placed on
%% unpacked files

\declarepreamble\mainpreamble
Copyright 1989-1997 Johannes L. Braams and any individual authors
listed elsewhere in this file.  All rights reserved.

For further copyright information see any other copyright notices in 
this file.

This file is part of the Babel system release 3.6.
--------------------------------------------------
  This system is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  For error reports concerning UNCHANGED versions of this file no
  more than one year old, see bugs.txt.

  Please do not request updates from me directly.  Primary
  distribution is through the CTAN archives.


IMPORTANT COPYRIGHT NOTICE:

You are NOT ALLOWED to distribute this file alone.

You are allowed to distribute this file under the condition that it
is distributed together with all the files listed in manifest.txt.

If you receive only some of these files from someone, complain!

Permission is granted to copy this file to another file with a
clearly different name and to customize the declarations in that
copy to serve the needs of your installation, provided that you
comply with the conditions in the file legal.txt from the LaTeX2e
distribution.

However, NO PERMISSION is granted to generate or to distribute a
modified version of this file under its original name.
 
You are NOT ALLOWED to change this file.


MODIFICATION ADVICE:

If you want to customize this file, it is best to make a copy of
the source file(s) from which it was produced.  Use a different
name for your copy(ies) and modify the copy(ies); this will ensure
that your modifications do not get overwritten when you install a
new release of the standard system.  You should also ensure that
your modified source file does not generate any modified file with
the same name as a standard file.

You can then easily distribute your modifications by distributing
the modified and renamed copy of the source file, taking care to
observe the conditions in legal.txt; this will ensure that other
users can safely use your modifications.

You will also need to produce your own, suitably named, .ins file to
control the generation of files from your source file; this file
should contain your own preambles for the files it generates, not
those in the standard .ins files.

The names of the source files used are shown above.
\endpreamble

\declarepreamble\fdpreamble
This is a generated file.

Copyright 1997 Johannes L. Braams and any individual authors
listed elsewhere in this file.  All rights reserved.

For further copyright information, and conditions for modification
and distribution, see any other copyright notices in this file.

This file is part of the Babel system, release 3.6.
---------------------------------------------------
  This system is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  For error reports concerning UNCHANGED versions of this file no
  more than one year old, see bugs.txt.

  Please do not request updates from me directly.  Primary
  distribution is through the CTAN archives.


IMPORTANT COPYRIGHT NOTICE:

You are NOT ALLOWED to distribute this file alone.

You are allowed to distribute this file under the condition that it
is distributed together with all the files listed in manifest.txt.

If you receive only some of these files from someone, complain!


Permission is granted to customize the declarations in this file to
serve the needs of your installation, provided that you comply with
the conditions in the file legal.txt.

However, NO PERMISSION is granted to distribute a modified version
of this file under its original name.
 

MODIFICATION ADVICE:

If you want to customize this file, it is best to make a copy of
the source file(s) from which it was produced.  Use a different
name for your copy(ies) and modify the copy(ies); this will ensure
that your modifications do not get overwritten when you install a
new release of the standard system.

You can then easily distribute your modifications by distributing
the modified and renamed copy of the source file, together with a
suitable .ins file, taking care to observe the conditions in
legal.txt; this will ensure that other users can safely use
your modifications.

The names of the source files used are shown above.



\endpreamble

\declarepreamble\drvpreamble

This file is part of the babel package, version 3.6
---------------------------------------------------

Copyright (C) 1997 Johannes Braams. All rights reserved.

To produce the documentation in the way you like you are allowed
to change this driver file.

\endpreamble

\declarepreamble\istpreamble
This file is part of the babel package, version 3.6
---------------------------------------------------

Copyright (C) 1997 Johannes Braams. All rights reserved.

This file is a style file for the MakeIndex program

\endpreamble

\declarepostamble\istpost
\endpostamble

\keepsilent
\askonceonly

\usepreamble\mainpreamble
\generate{\file{babel.sty}{\from{babel.dtx}{package}}
          \file{babel.def}{\from{babel.dtx}{core}}
          \file{switch.def}{\from{babel.dtx}{kernel}}
          \file{hyphen.cfg}{\from{babel.dtx}{kernel,patterns}}
          }
% Support for plain users
\generateFile{plain.def}{f}{\from{bbplain.dtx}{code}}
%
%  The language specific files
\def\languagedefinition#1{%
  \generate{\file{#1.ldf}{\from{#1.dtx}{code}}}}

\languagedefinition{esperant}
%%%
\languagedefinition{dutch}
\languagedefinition{english}
\languagedefinition{germanb}
%%%
\languagedefinition{irish}
\languagedefinition{scottish}
\languagedefinition{welsh}
\languagedefinition{breton}
\languagedefinition{frenchb}
\languagedefinition{italian}
\languagedefinition{portuges}
\languagedefinition{spanish}
\languagedefinition{catalan}
\languagedefinition{galician}
%%%
\languagedefinition{danish}
\languagedefinition{norsk}
\languagedefinition{swedish}
%%%                   
\languagedefinition{finnish}
\languagedefinition{magyar}
%%%                   
\languagedefinition{greek}
%%%
\languagedefinition{croatian}
\languagedefinition{czech}
\languagedefinition{slovak}
\languagedefinition{polish}
\languagedefinition{estonian}
\languagedefinition{romanian}
\languagedefinition{slovene}
%%%
\languagedefinition{russianb}
%%%
\languagedefinition{turkish}
\languagedefinition{lsorbian}
\languagedefinition{usorbian}
%%%
\languagedefinition{bahasa}

%
% Font definition files for greek and cyrillic.
% Maybe this should be optional?

\usepreamble\fdpreamble

\batchinput{greek.ins}
\batchinput{cyrillic.ins}
%
% compatibility files

\usepreamble\mainpreamble

\def\compatfile#1{\file{#1.sty}{\from{bbcompat.dtx}{#1}}}

\generate{\compatfile{esperant}
          \compatfile{dutch}
          \compatfile{english}
          \compatfile{germanb}
          \compatfile{irish}
          \compatfile{scottish}
          \compatfile{welsh}
          \compatfile{breton}
          \compatfile{francais}
          \compatfile{italian}
          \compatfile{portuges}
          \compatfile{spanish}
          \compatfile{catalan}
          \compatfile{galician}
          \compatfile{danish}
          \compatfile{norsk}}
\generate{\compatfile{swedish}
          \compatfile{finnish}
          \compatfile{magyar}
          \compatfile{greek}
          \compatfile{croatian}
          \compatfile{czech}
          \compatfile{slovak}
          \compatfile{polish}
          \compatfile{estonian}
          \compatfile{romanian}
          \compatfile{slovene}
          \compatfile{russianb}
          \compatfile{turkish}
          \compatfile{lsorbian}
          \compatfile{usorbian}
          \compatfile{bahasa}}

% driver files

\usepreamble\drvpreamble

\generate{\file{babel.drv}{\from{babel.dtx}{driver}}
          \file{user.drv}{\from{babel.dtx}{driver,user}}}

% MakeIndex style files

\usepreamble\istpreamble
\usepostamble\istpost

\generate{\file{bbind.ist}{\from{bbidxglo.dtx}{idx}}
          \file{bbglo.ist}{\from{bbidxglo.dtx}{glo}}}

\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move all the files}
\Msg{* with names ending in .ldf, .sty, .def or .fd into a}
\Msg{* directory searched by TeX}
\Msg{*}
\Msg{* For making a format the following files have to be in a}
\Msg{* directory which is searched by IniTeX:}
\Msg{* \space\space hyphen.cfg}
\Msg{* \space\space language.dat}
\Msg{* \space\space and files with hyphenation patterns}
\Msg{*}
\Msg{* To produce source listings you can run files with names}
\Msg{* ending in .dtx and/or .drv through LaTeX}
\Msg{*}
\Msg{* To produce the complete source listing MakeIndex needs to be}
\Msg{* able to find the following files}
\Msg{* \space\space bbind.ist}
\Msg{* \space\space bbglo.ist}
\Msg{*}
\Msg{* Happy TeXing}
\Msg{*}
\Msg{***********************************************************}


