From 1bf96508328ca27fb19b522f646ae17b3c93cbea Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 13 Feb 2003 12:30:10 +0000 Subject: [PATCH] Move the 'vers' resources for Mac OS into their own file, to be shared by the various applications. git-svn-id: svn://svn.tartarus.org/sgt/putty@2843 cda61777-01e9-0310-a592-d414129be87e --- CHECKLST.txt | 2 +- mac/version.r | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 mac/version.r diff --git a/CHECKLST.txt b/CHECKLST.txt index ab6ed059..34f592f8 100644 --- a/CHECKLST.txt +++ b/CHECKLST.txt @@ -60,7 +60,7 @@ The Windows installer script: The Mac resource file (used to generate the binary bit of the 'vers' resources -- the strings are supplied by the usual means): - - putty/mac/mac_res.r + - putty/mac/version.r The actual release procedure ---------------------------- diff --git a/mac/version.r b/mac/version.r new file mode 100644 index 00000000..afa1d4ab --- /dev/null +++ b/mac/version.r @@ -0,0 +1,54 @@ +/* + * Current PuTTY version number. Minor is in BCD + */ +#define VERSION_MAJOR 0x00 +#define VERSION_MINOR 0x53 + +resource 'vers' (1, purgeable) { +#ifdef RELEASE + VERSION_MAJOR, VERSION_MINOR, + beta, +#else + VERSION_MAJOR, VERSION_MINOR + 1, + development, +#endif + 0, /* No prerelease version */ + verBritain, +#ifdef RELEASESTR + RELEASESTR, + "Release " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "Development snapshot " SNAPSHOTSTR, +#else + "unknown", + "Unidentified build, " $$Date " " $$Time, +#endif +#endif +}; + +resource 'vers' (2, purgeable) { +#ifdef RELEASE + VERSION_MAJOR, VERSION_MINOR, + beta, +#else + VERSION_MAJOR, VERSION_MINOR + 1, + development, +#endif + 0, /* No prerelease version */ + verBritain, +#ifdef RELEASESTR + RELEASESTR, + "PuTTY " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "PuTTY snapshot " SNAPSHOTSTR, +#else + "unknown", + "PuTTY", +#endif +#endif +}; + -- 2.11.0