Browse Source

+ version/release/patch numbers as string added

florian 27 years ago
parent
commit
241c9f6020
1 changed files with 40 additions and 8 deletions
  1. 40 8
      install/install.pas

+ 40 - 8
install/install.pas

@@ -1,3 +1,19 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 1993,98 by Florian Klaempfl
+    member of the Free Pascal development team
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    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.
+
+ **********************************************************************}
+{ This is the install program for the DOS version of Free Pascal }
+
 {$A+,B-,D+,E+,F-,G-,I-,L+,N-,O-,P-,Q+,R+,S+,T-,V-,X+,Y+}
 {$A+,B-,D+,E+,F-,G-,I-,L+,N-,O-,P-,Q+,R+,S+,T-,V-,X+,Y+}
 {$M 16384,0,16384}
 {$M 16384,0,16384}
 program install;
 program install;
@@ -9,6 +25,16 @@ program install;
      binpath,startpath : string;
      binpath,startpath : string;
      successfull : boolean;
      successfull : boolean;
 
 
+  const
+     version = '0';
+     release = '99'
+     patchlevel = '6';
+
+     filenr = version+release+patchlevel;
+
+     doc_version = '101';
+
+
   procedure uppervar(var s : string);
   procedure uppervar(var s : string);
 
 
     var
     var
@@ -249,16 +275,16 @@ program install;
               if file_exists('DOCS.ZIP',startpath) then
               if file_exists('DOCS.ZIP',startpath) then
                 inc(mask_components,32);
                 inc(mask_components,32);
 
 
-              if file_exists('DOC100PS.ZIP',startpath) then
+              if file_exists('DOC+doc_version+PS.ZIP',startpath) then
                 inc(mask_components,64);
                 inc(mask_components,64);
 
 
-              if file_exists('RL09900S.ZIP',startpath) then
+              if file_exists('RL'+filenr+'S.ZIP',startpath) then
                 inc(mask_components,128);
                 inc(mask_components,128);
 
 
-              if file_exists('PP09900S.ZIP',startpath) then
+              if file_exists('PP'+filenr+'S.ZIP',startpath) then
                 inc(mask_components,256);
                 inc(mask_components,256);
 
 
-              if file_exists('DOC100S.ZIP',startpath) then
+              if file_exists('DOC+doc_version+S.ZIP',startpath) then
                 inc(mask_components,512);
                 inc(mask_components,512);
 
 
               while true do
               while true do
@@ -349,16 +375,16 @@ program install;
                            do_install('DOCS');
                            do_install('DOCS');
 
 
                         if (installdata.components and 64)<>0 then
                         if (installdata.components and 64)<>0 then
-                           do_install('DOCS101PS');
+                           do_install('DOC+doc_version+PS');
 
 
                         if (installdata.components and 128)<>0 then
                         if (installdata.components and 128)<>0 then
-                           do_install('RL09905S');
+                           do_install('RL'+filenr+'S');
 
 
                         if (installdata.components and 256)<>0 then
                         if (installdata.components and 256)<>0 then
-                           do_install('PP09905S');
+                           do_install('PP'+filenr+'S');
 
 
                         if (installdata.components and 512)<>0 then
                         if (installdata.components and 512)<>0 then
-                           do_install('DOC101S');
+                           do_install('DOC+doc_version+S');
 
 
                         assign(t,'BIN\PPC386.CFG');
                         assign(t,'BIN\PPC386.CFG');
                         rewrite(t);
                         rewrite(t);
@@ -453,3 +479,9 @@ begin
         writeln('To compile files enter PPC386 [file]');
         writeln('To compile files enter PPC386 [file]');
      end;
      end;
 end.
 end.
+{
+  $Log$
+  Revision 1.2  1998-04-07 22:47:57  florian
+    + version/release/patch numbers as string added
+
+}