version.pas 2.8 KB

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