version.pas 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. { version string }
  23. version_nr = '1';
  24. release_nr = '9';
  25. patch_nr = '9';
  26. minorpatch = '';
  27. { word version for ppu file }
  28. wordversion = ((ord(version_nr)-ord('0')) shl 14)+
  29. ((ord(release_nr)-ord('0')) shl 7)+
  30. (ord(patch_nr)-ord('0'));
  31. { date string }
  32. date_string = {$I %DATE%};
  33. { source cpu string }
  34. {$ifdef cpu86}
  35. source_cpu_string = 'i386';
  36. {$endif cpu86}
  37. {$ifdef cpupowerpc}
  38. source_cpu_string = 'powerpc';
  39. {$endif cpupowerpc}
  40. {$ifdef cpum68k}
  41. source_cpu_string = 'm68k';
  42. {$endif cpum68k}
  43. {$ifdef cpuia64}
  44. source_cpu_string = 'ia64';
  45. {$endif cpuia64}
  46. {$ifdef cpux86_64}
  47. source_cpu_string = 'x86_64';
  48. {$endif cpux86_64}
  49. {$ifdef cpusparc}
  50. source_cpu_string = 'sparc';
  51. {$endif cpusparc}
  52. {$ifdef cpusalpha}
  53. source_cpu_string = 'alpha';
  54. {$endif cpualpha}
  55. {$ifdef cpuvis}
  56. source_cpu_string = 'vis';
  57. {$endif cpuvis}
  58. {$ifdef cpuarm}
  59. source_cpu_string = 'arm';
  60. {$endif cpuarm}
  61. function version_string:string;
  62. function full_version_string:string;
  63. implementation
  64. function version_string:string;
  65. begin
  66. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  67. end;
  68. function full_version_string:string;
  69. begin
  70. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  71. end;
  72. end.
  73. {
  74. $Log$
  75. Revision 1.36 2005-04-28 20:19:31 michael
  76. + Back to 1.9.9 for snapshot generation
  77. Revision 1.34 2005/02/25 11:41:27 peter
  78. * 1.9.9
  79. Revision 1.33 2005/02/15 22:31:35 peter
  80. * back to 1.9.7 for head
  81. Revision 1.32 2005/02/15 22:28:29 peter
  82. * 1.9.8
  83. Revision 1.31 2005/02/14 17:13:09 peter
  84. * truncate log
  85. Revision 1.30 2005/01/19 21:10:15 peter
  86. * build wordversion from constants
  87. Revision 1.29 2005/01/02 10:20:08 florian
  88. * version and copyright increased
  89. }