X-Git-Url: https://git.distorted.org.uk/~mdw/strayman/blobdiff_plain/1ffa90443b7d571c1d2af00626db04dea063302d..8fc29298bf30478a774a98cdb3849fcec0782517:/strayman.ins

diff --git a/strayman.ins b/strayman.ins
index b901a03..1f9b2a2 100644
--- a/strayman.ins
+++ b/strayman.ins
@@ -1,4 +1,31 @@
-% strayman.ins
+%
+% $Id: strayman.ins,v 1.2 2002/02/24 12:46:09 mdw Exp $
+%
+% Installer for the strayman packages
+%
+% (c) 1996 Mark Wooding
+%
+
+% --- Licence note ---
+%
+% strayman installer
+% Copyright (c) 1996 Mark Wooding
+%
+% This program 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 of the License, or
+% (at your option) any later version.
+%
+% This program 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.
+
+% --- Sort out how to do all this ---
 
 \def\batchfile{strayman.ins}
 \input docstrip
@@ -6,21 +33,30 @@
 
 \preamble
 
-IMPORTANT NOTE
-This file is copyright (c) 1996 Straylight.  All rights reserved.
+IMPORTANT NOTICE
+\endpreamble
 
-Straylight do not accept responsibility for any loss or damage
-incurred as a result of using this file.
+{ % --- This is a group so that docstrip \reads it all in one go ---
 
-\endpreamble
+  \ifx\generate\mdwxxnotdef
+    \gdef\mdwgen#1{#1}
+    \gdef\mdwf#1#2{\generateFile{#1}{n}{#2}}
+    \gdef\needed#1{}
+  \else
+    \global\let\mdwgen\generate
+    \global\def\mdwf{\file}
+    \global\askforoverwritefalse
+  \fi
+
+}
 
-\askforoverwritefalse
-\generate{\file{strayman.cls}{\from{strayman.dtx}{strayman}}
-          \file{strayman.8pt}{\from{strayman.dtx}{8pt}}
-          \file{strayman.9pt}{\from{strayman.dtx}{9pt}}
-          \file{strayman.10pt}{\from{strayman.dtx}{10pt}}
-          \file{strayman.11pt}{\from{strayman.dtx}{11pt}}
-          \file{strayman.12pt}{\from{strayman.dtx}{12pt}}
-          \file{strayman.text}{\from{strayman.dtx}{text}}}
+\mdwgen{\mdwf {strayman.cls}    {\from{strayman.dtx}  {strayman}}
+        \mdwf {strayman.8pt}    {\from{strayman.dtx}  {8pt}}
+        \mdwf {strayman.9pt}    {\from{strayman.dtx}  {9pt}}
+        \mdwf {strayman.10pt}   {\from{strayman.dtx}  {10pt}}
+        \mdwf {strayman.11pt}   {\from{strayman.dtx}  {11pt}}
+        \mdwf {strayman.12pt}   {\from{strayman.dtx}  {12pt}}
+        \mdwf {strayman.text}   {\from{strayman.dtx}  {text}}
+}
 
 \Msg{Done!}
