replace version.h with uqmversion.h to make MSVC6 happy about dependencies
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@762 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -31,7 +31,7 @@ resource hacker: http://www.users.on.net/johnson/resourcehacker/
|
||||
This will generate a reference contour to compare the current CVS build
|
||||
against. This only needs to be done once (after each release)
|
||||
|
||||
1) Compile uqm.exe. Note that version.h defines the version of UQM to build,
|
||||
1) Compile uqm.exe. Note that uqmversion.h defines the version of UQM to build,
|
||||
and should be set appropriately before compiling
|
||||
|
||||
2) Build content .zip files and content.nsh
|
||||
@@ -42,7 +42,7 @@ resource hacker: http://www.users.on.net/johnson/resourcehacker/
|
||||
to create a full content directory rather than just the upgrade zip
|
||||
./build_archives.pl contour_0_1 [full]
|
||||
This will generate .zip files of the content directory (assuming
|
||||
version.h defines the version as 0.2):
|
||||
uqmversion.h defines the version as 0.2):
|
||||
uqm-0.1_to_0.2-content.zip
|
||||
uqm-0.1_to_0.2-voice.zip
|
||||
and (if 'full' is specified)
|
||||
@@ -111,8 +111,8 @@ resource hacker: http://www.users.on.net/johnson/resourcehacker/
|
||||
ubx. this may break the game and/or installer, and
|
||||
is not recomended.
|
||||
MUI_VERSION: The version of UQM you are building. This parameter
|
||||
is normally auto-defined by readinng version.h, but
|
||||
can be manually overridden if needed.
|
||||
is normally auto-defined by readinng uqmversion.h,
|
||||
but can be manually overridden if needed.
|
||||
|
||||
4) run NSIS to build the installer:
|
||||
makensis uqm.nsi
|
||||
|
||||
@@ -15,9 +15,9 @@ if (! defined ($file) || scalar(@ARGV)) {
|
||||
# print STDERR "$0 cvs_log_file cvs_tag [full]\n";
|
||||
exit 1;
|
||||
}
|
||||
# fetch the version from version.h
|
||||
if (-f "../../src/version.h") {
|
||||
open (FH, "../../src/version.h") or die "couldn't read version.h\n";
|
||||
# fetch the version from uqmversion.h
|
||||
if (-f "../../src/uqmversion.h") {
|
||||
open (FH, "../../src/uqmversion.h") or die "couldn't read uqmversion.h\n";
|
||||
while (<FH>) {
|
||||
if (/^\s*\#define\s+UQM_MAJOR_VERSION\s+(\d+)/) {
|
||||
$major = $1;
|
||||
@@ -31,11 +31,11 @@ if (-f "../../src/version.h") {
|
||||
}
|
||||
close FH;
|
||||
if (!defined ($major) || !defined ($minor) || !defined ($extra)) {
|
||||
die "Error reading version.h\n";
|
||||
die "Error reading uqmversion.h\n";
|
||||
}
|
||||
$version = "$major.${minor}${extra}";
|
||||
} else {
|
||||
die "couldn't find version.h\n";
|
||||
die "couldn't find uqmversion.h\n";
|
||||
}
|
||||
|
||||
if (! defined ($do_full)) {
|
||||
|
||||
Reference in New Issue
Block a user