version.pas 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. $Id$
  3. Copyright (C) 1998-2000 by Florian Klaempfl
  4. Version/target constants
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit version;
  19. {$i defines.inc}
  20. interface
  21. const
  22. { word version for ppu file }
  23. wordversion = (1 shl 14)+1;
  24. { version string }
  25. version_nr = '1';
  26. release_nr = '1';
  27. patch_nr = '0';
  28. {$ifdef newcg}
  29. minorpatch = ' NCG';
  30. {$else newcg}
  31. minorpatch = '';
  32. {$endif newcg}
  33. { date string }
  34. {$ifdef FPC}
  35. date_string = {$I %DATE%};
  36. {$else}
  37. date_string = 'N/A';
  38. {$endif}
  39. { target cpu string }
  40. {$ifdef i386}
  41. target_cpu_string = 'i386';
  42. {$endif}
  43. {$ifdef m68k}
  44. target_cpu_string = 'm68k';
  45. {$endif}
  46. {$ifdef alpha}
  47. target_cpu_string = 'alpha';
  48. {$endif}
  49. {$ifdef powerpc}
  50. target_cpu_string = 'powerpc';
  51. {$endif}
  52. { source cpu string }
  53. {$ifdef cpu86}
  54. source_cpu_string = 'i386';
  55. {$endif}
  56. {$ifdef cpu68}
  57. source_cpu_string = 'm68k';
  58. {$endif}
  59. function version_string:string;
  60. function full_version_string:string;
  61. implementation
  62. function version_string:string;
  63. begin
  64. if patch_nr='0' then
  65. version_string := version_nr+'.'+release_nr
  66. else
  67. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  68. end;
  69. function full_version_string:string;
  70. begin
  71. if patch_nr='0' then
  72. full_version_string := version_nr+'.'+release_nr+minorpatch
  73. else
  74. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  75. end;
  76. end.
  77. {
  78. $Log$
  79. Revision 1.6 2000-09-24 15:06:33 peter
  80. * use defines.inc
  81. Revision 1.5 2000/07/14 05:14:10 michael
  82. + Adapted wordversion
  83. Revision 1.4 2000/07/14 05:11:49 michael
  84. + Patch to 1.1
  85. Revision 1.3 2000/07/13 12:08:28 michael
  86. + patched to 1.1.0 with former 1.09patch from peter
  87. Revision 1.2 2000/07/13 11:32:54 michael
  88. + removed logs
  89. }