1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

New version-number system. Doesn't yet do the "about" box.

[originally from svn r148]
This commit is contained in:
Ben Harris 1999-04-01 21:25:06 +00:00
parent cd724101ae
commit 0e0fd7702c
3 changed files with 48 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $Id: Makefile.mpw,v 1.1.2.7 1999/03/29 23:55:06 ben Exp $
# $Id: Makefile.mpw,v 1.1.2.8 1999/04/01 21:25:06 ben Exp $
# This is the Makefile for building PuTTY for the Mac OS.
# Users of non-Mac systems will see some pretty strange characters around.
@ -93,15 +93,22 @@ PuTTY
{Libs¥68K}
END
PuTTY ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
PuTTY ÄÄ mac_res.r macresid.h
Rez mac_res.r -o {Targ} {Includes} -append
PuTTY ÄÄ version.r version.h
Rez mac_res.r -d BUILD_ARCH='"68k"' -o {Targ} {Includes} -append
PuTTY.ppc ÄÄ {¥MondoBuild¥} mac_res.r macresid.h
Rez mac_res.r -o {Targ} {Includes} -append
PuTTY.fat Ä PuTTY PuTTY.ppc
PuTTY.ppc ÄÄ version.r version.h
Rez mac_res.r -d BUILD_ARCH='"PowerPC"' -o {Targ} {Includes} -append
PuTTY.fat Ä PuTTY PuTTY.ppc version.r version.h
Duplicate -y PuTTY PuTTY.fat
MergeFragment PuTTY.ppc PuTTY.fat
Rez mac_res.r -d BUILD_ARCH='"fat"' -o {Targ} {Includes} -append
.c.o Ä .c
{C} {default}.c -o {Targ} {COptions}

14
version.h Normal file
View File

@ -0,0 +1,14 @@
/* PuTTY version number */
/*
* Note that this file is used by resource compilers that don't
* implement the funkier bits of CPP
*/
#define PUTTY_VERS_MAJOR 0
#define PUTTY_VERS_MAJOR_BCD 0x00
#define PUTTY_VERS_MINOR 45
#define PUTTY_VERS_MINOR_BCD 0x45
#define PUTTY_VERS_PRERELEASE 0
#define PUTTY_VERS_STATE development
#define PUTTY_VERS_SHORT_STR "0.45d0"
#define PUTTY_VERS_LONG_STR "Dev 0.45 Mac 0"

24
version.r Normal file
View File

@ -0,0 +1,24 @@
/*
* PuTTY version resource
* (separated because it gets rebuilt for each architecture)
*/
#include "version.h"
#include "Types.r"
#ifndef BUILD_ARCH
#define BUILD_ARCH "unknown"
#endif
resource 'vers' (1, purgeable) {
PUTTY_VERS_MAJOR_BCD,
PUTTY_VERS_MINOR_BCD,
PUTTY_VERS_STATE,
PUTTY_VERS_PRERELEASE,
2, /* Region code (2 = UK) */
PUTTY_VERS_SHORT_STR,
PUTTY_VERS_LONG_STR " (" BUILD_ARCH ")\n"
"Copyright \$a9 Simon Tatham 1997-9",
};