version.pas 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 shl 7) + 0;
  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 sparc}
  44. target_cpu_string = 'sparc';
  45. {$endif}
  46. {$ifdef m68k}
  47. target_cpu_string = 'm68k';
  48. {$endif}
  49. {$ifdef alpha}
  50. target_cpu_string = 'alpha';
  51. {$endif}
  52. {$ifdef powerpc}
  53. target_cpu_string = 'powerpc';
  54. {$endif}
  55. {$ifdef ia64}
  56. target_cpu_string = 'ia64';
  57. {$endif}
  58. { source cpu string }
  59. {$ifdef cpu86}
  60. source_cpu_string = 'i386';
  61. {$endif}
  62. {$ifdef cpu68}
  63. source_cpu_string = 'm68k';
  64. {$endif}
  65. {$ifdef cpuia64}
  66. target_cpu_string = 'ia64';
  67. {$endif}
  68. function version_string:string;
  69. function full_version_string:string;
  70. implementation
  71. function version_string:string;
  72. begin
  73. if patch_nr='0' then
  74. version_string := version_nr+'.'+release_nr
  75. else
  76. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  77. end;
  78. function full_version_string:string;
  79. begin
  80. if patch_nr='0' then
  81. full_version_string := version_nr+'.'+release_nr+minorpatch
  82. else
  83. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  84. end;
  85. end.
  86. {
  87. $Log$
  88. Revision 1.9 2002-03-24 19:12:11 carl
  89. + patch for SPARC from Mazen NEIFER
  90. Revision 1.8 2002/03/01 12:47:21 pierre
  91. * used shl 7 for release number
  92. Revision 1.7 2000/11/29 00:30:43 florian
  93. * unused units removed from uses clause
  94. * some changes for widestrings
  95. Revision 1.6 2000/09/24 15:06:33 peter
  96. * use defines.inc
  97. Revision 1.5 2000/07/14 05:14:10 michael
  98. + Adapted wordversion
  99. Revision 1.4 2000/07/14 05:11:49 michael
  100. + Patch to 1.1
  101. Revision 1.3 2000/07/13 12:08:28 michael
  102. + patched to 1.1.0 with former 1.09patch from peter
  103. Revision 1.2 2000/07/13 11:32:54 michael
  104. + removed logs
  105. }