version.pas 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 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 fpcdefs.inc}
  20. interface
  21. const
  22. { word version for ppu file }
  23. wordversion = (1 shl 14)+(9 shl 7) + 5;
  24. { version string }
  25. version_nr = '1';
  26. release_nr = '9';
  27. patch_nr = '7';
  28. minorpatch = '';
  29. { date string }
  30. {$ifdef FPC}
  31. date_string = {$I %DATE%};
  32. {$else}
  33. date_string = 'N/A';
  34. {$endif}
  35. { source cpu string }
  36. {$ifdef cpu86}
  37. source_cpu_string = 'i386';
  38. {$endif cpu86}
  39. {$ifdef cpupowerpc}
  40. source_cpu_string = 'powerpc';
  41. {$endif cpupowerpc}
  42. {$ifdef cpum68k}
  43. source_cpu_string = 'm68k';
  44. {$endif cpum68k}
  45. {$ifdef cpuia64}
  46. source_cpu_string = 'ia64';
  47. {$endif cpuia64}
  48. {$ifdef cpux86_64}
  49. source_cpu_string = 'x86_64';
  50. {$endif cpux86_64}
  51. {$ifdef cpusparc}
  52. source_cpu_string = 'sparc';
  53. {$endif cpusparc}
  54. {$ifdef cpusalpha}
  55. source_cpu_string = 'alpha';
  56. {$endif cpualpha}
  57. {$ifdef cpuvis}
  58. source_cpu_string = 'vis';
  59. {$endif cpuvis}
  60. {$ifdef cpuarm}
  61. source_cpu_string = 'arm';
  62. {$endif cpuarm}
  63. function version_string:string;
  64. function full_version_string:string;
  65. implementation
  66. function version_string:string;
  67. begin
  68. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  69. end;
  70. function full_version_string:string;
  71. begin
  72. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  73. end;
  74. end.
  75. {
  76. $Log$
  77. Revision 1.29 2005-01-02 10:20:08 florian
  78. * version and copyright increased
  79. Revision 1.28 2004/12/30 19:01:29 peter
  80. * back to 1.9.5 for HEAD
  81. Revision 1.27 2004/12/30 18:37:27 peter
  82. * 1.9.6
  83. Revision 1.26 2004/06/20 08:55:30 florian
  84. * logs truncated
  85. Revision 1.25 2004/06/16 20:07:10 florian
  86. * dwarf branch merged
  87. Revision 1.24 2004/05/31 12:00:56 peter
  88. * 1.9.5 for CVS HEAD
  89. Revision 1.23 2004/05/29 23:46:50 michael
  90. + Version 1.9.4
  91. Revision 1.22.2.1 2004/04/28 21:46:56 peter
  92. * compile fixes for x86-64
  93. Revision 1.22 2004/01/11 20:59:41 florian
  94. * version changed to 1.9.3
  95. }