version.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * This header file provides the various versioning-related #defines
  3. * for a particular PuTTY build.
  4. *
  5. * When my automated build system does a full build, Buildscr
  6. * completely overwrites this file with information derived from the
  7. * circumstances and type of that build. The information _here_ is
  8. * default stuff used for local development runs of 'make'.
  9. */
  10. #define TEXTVER "Unidentified build"
  11. #define SSHVER "-Unidentified-Local-Build"
  12. #define BINARY_VERSION 0,0,0,0
  13. #ifndef SOURCE_COMMIT
  14. /*
  15. * git commit id from which this build was made. This is defined by
  16. * Buildscr for official builds - both source archives and prebuilt
  17. * binaries - in the course of overwriting this file as described
  18. * above. But we put it here under ifdef, so that it can also be
  19. * passed in on the command line for Unix local development builds,
  20. * which I treat specially because Unix developers - e.g. me - are
  21. * quite likely to run 'make install' straight out of their dev
  22. * directory so as to use the bleeding-edge code for day-to-day
  23. * running.
  24. *
  25. * Windows doesn't really need the same treatment, because the easiest
  26. * way to install a build properly on Windows is to run the installer,
  27. * and the easiest way to do that is to run Buildscr, which will
  28. * populate this field its own way. It's only the Unix automake build
  29. * where you might go straight from local 'make' to 'make install'
  30. * without going through Buildscr.
  31. */
  32. #define SOURCE_COMMIT "unavailable"
  33. #endif