From 2afa5f5d320f47dac559909d0b0e8b526de2dd28 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 30 Dec 2002 23:14:11 +0000 Subject: [PATCH] Add support for compiling 'vers' resources into Mac applications. This is needlessly complex because Rez's preprocessor doesn't do either ANSI or K&R stringification, and the MPW Shell isn't much good as shells go. Also make _all_ the Mac executables depend on reources, not just the Classic 68K one. git-svn-id: svn://svn.tartarus.org/sgt/putty@2389 cda61777-01e9-0310-a592-d414129be87e --- mac/mac_res.r | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- mkfiles.pl | 6 ++++-- 2 files changed, 52 insertions(+), 3 deletions(-) diff --git a/mac/mac_res.r b/mac/mac_res.r index a8c800ed..1884427f 100644 --- a/mac/mac_res.r +++ b/mac/mac_res.r @@ -1,4 +1,4 @@ -/* $Id: mac_res.r,v 1.6 2002/12/30 18:21:17 ben Exp $ */ +/* $Id: mac_res.r,v 1.7 2002/12/30 23:14:11 ben Exp $ */ /* * Copyright (c) 1999 Ben Harris * All rights reserved. @@ -342,6 +342,53 @@ resource 'icl8' (130, purgeable) { $"000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" }; +resource 'vers' (1, purgeable) { + /* XXX This needs to be updated for each new version */ + 0x00, 0x53, +#ifdef RELEASE + beta, +#else + development, +#endif + 0, /* No prerelease version */ + 2, /* Region code 2 = UK */ +#ifdef RELEASESTR + RELEASESTR, + "Release " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "Development snapshot " SNAPSHOTSTR, +#else + "unknown", + "Unidentified build, " $$Date " " $$Time, +#endif +#endif +}; + +resource 'vers' (2, purgeable) { + /* XXX This needs to be updated for each new version */ + 0x00, 0x53, +#ifdef RELEASE + beta, +#else + development, +#endif + 0, /* No prerelease version */ + 2, /* Region code 2 = UK */ +#ifdef RELEASESTR + RELEASESTR, + "PuTTY " RELEASESTR, +#else +#ifdef SNAPSHOTSTR + SNAPSHOTSTR, + "PuTTY snapshot " SNAPSHOTSTR, +#else + "unknown", + "PuTTY", +#endif +#endif +}; /* * Internal resources diff --git a/mkfiles.pl b/mkfiles.pl index fabdc87b..8685752c 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -593,6 +593,8 @@ END print $_; print <