version.pas 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. interface
  20. const
  21. { word version for ppu file }
  22. wordversion = (1 shl 14)+1;
  23. { version string }
  24. version_nr = '1';
  25. release_nr = '1';
  26. patch_nr = '0';
  27. {$ifdef newcg}
  28. minorpatch = ' NCG';
  29. {$else newcg}
  30. minorpatch = '';
  31. {$endif newcg}
  32. { date string }
  33. {$ifdef FPC}
  34. date_string = {$I %DATE%};
  35. {$else}
  36. date_string = 'N/A';
  37. {$endif}
  38. { target cpu string }
  39. {$ifdef i386}
  40. target_cpu_string = 'i386';
  41. {$endif}
  42. {$ifdef m68k}
  43. target_cpu_string = 'm68k';
  44. {$endif}
  45. {$ifdef alpha}
  46. target_cpu_string = 'alpha';
  47. {$endif}
  48. {$ifdef powerpc}
  49. target_cpu_string = 'powerpc';
  50. {$endif}
  51. { source cpu string }
  52. {$ifdef cpu86}
  53. source_cpu_string = 'i386';
  54. {$endif}
  55. {$ifdef cpu68}
  56. source_cpu_string = 'm68k';
  57. {$endif}
  58. function version_string:string;
  59. function full_version_string:string;
  60. implementation
  61. function version_string:string;
  62. begin
  63. if patch_nr='0' then
  64. version_string := version_nr+'.'+release_nr
  65. else
  66. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  67. end;
  68. function full_version_string:string;
  69. begin
  70. if patch_nr='0' then
  71. full_version_string := version_nr+'.'+release_nr+minorpatch
  72. else
  73. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  74. end;
  75. begin
  76. end.
  77. {
  78. $Log$
  79. Revision 1.5 2000-07-14 05:14:10 michael
  80. + Adapted wordversion
  81. Revision 1.4 2000/07/14 05:11:49 michael
  82. + Patch to 1.1
  83. Revision 1.3 2000/07/13 12:08:28 michael
  84. + patched to 1.1.0 with former 1.09patch from peter
  85. Revision 1.2 2000/07/13 11:32:54 michael
  86. + removed logs
  87. }