-/* $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.
$"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
print $_;
print <<END;
+ROptions = `Echo "{VER}" | StreamEdit -e "1,\$ replace /=(\xc5)\xa81\xb0/ 'STR=\xb6\xb6\xb6\xb6\xb6"' \xa81 '\xb6\xb6\xb6\xb6\xb6"'"`
+
# -w 35 disables "unused parameter" warnings
COptions = -i : -i :: -w 35 -w err -proto strict
COptions_68K = {COptions} -model far -opt space
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.cfm68k.o", "", undef);
- print &splitline("$prog.cfm68k \xc4 $objstr", undef, "\xb6"), "\n";
+ print &splitline("$prog.cfm68k \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tILink -o {Targ} {LinkOptions_CFM68K} " .
$objstr . " {Libs_CFM68K}", 69, "\xb6"), "\n";
print &splitline("\tSetFile -a BM {Targ}", 69, "\xb6"), "\n\n";
$objstr = &objects($p, "X.ppc.o", "", undef);
- print &splitline("$prog.ppc \xc4 $objstr", undef, "\xb6"), "\n";
+ print &splitline("$prog.ppc \xc4 $objstr $rsrc", undef, "\xb6"), "\n";
print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
print &splitline("\tPPCLink -o {Targ} {LinkOptions_PPC} " .
$objstr . " {Libs_PPC}", 69, "\xb6"), "\n";