%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% rsc is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2, or (at your option)
% any later version.
%
% rsc 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.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input docstrip.tex
\askonceonly
\preamble
 ----------------------------------------------------------------
 The rsc package - BibTeX and macro support for Royal Society
 of Chemistry and Wiley chemistry articles
 Maintained by Joseph Wright
 E-mail: joseph.wright@morningstar2.co.uk
 Released under the GNU General Public License
 See http://www.gnu.org/licenses/gpl.txt
 ----------------------------------------------------------------
\endpreamble
\Msg{Generating rsc files:}
\usedir{tex/latex/contib/rsc}
\generate{\file{rsc.sty}{\from{rsc.dtx}{package}}
          \file{rsc-template.tex}{\from{rsc.dtx}{template}}
}
% In order to produce the correct ending for
% BibTeX files, we have to kill the standard
% DocStrip postamble.  By using an empty one, but
% not \empty, we still get the "end of file" message.
\declarepostamble\bibtexable
\endpostamble
\usedir{bibtex/bst/rsc}
\generate{\usepostamble\bibtexable
          \file{rsc.bst}{\from{rsc.dtx}{bib,rsc}}
          \file{rscnat.bst}{\from{rsc.dtx}{bib,rsc,nat}}
          \file{rsc-mc.bst}{\from{rsc.dtx}{bib,rsc,mc}}
          \file{angew.bst}{\from{rsc.dtx}{bib,angew}}
          \file{angewnat.bst}{\from{rsc.dtx}{bib,angew,nat}}
          \file{angew-mc.bst}{\from{rsc.dtx}{bib,angew,mc}}
}
\endbatchfile
