r=cf
- Search through the list of possible build ID locations for XR apps until we find the build ID.
This commit is contained in:
ccooper%deadsquid.com 2007-11-07 21:47:30 +00:00
Родитель b8af82e8ea
Коммит b4d852c237
3 изменённых файлов: 27 добавлений и 1 удалений

Просмотреть файл

@ -520,10 +520,26 @@ sub get_buildid {
if (-e $platformIni) {
my $c = read_file($platformIni);
if ($c =~ /^BuildID=(\d+)/m) {
$buildid = $1;
$buildid = $1;
}
}
if (!defined($buildid) && $Settings::XULRunnerApp) {
my @possibleBuildIdLocations = (
"$objdir/xulrunner/dist/bin/platform.ini",
"$objdir/xulrunner/toolkit/xre/platform.ini",
);
foreach my $file (@possibleBuildIdLocations) {
if (-e $file) {
my $c = read_file($file);
if ($c =~ /^BuildID=(\d+)/m) {
$buildid = $1;
last;
}
}
}
}
if (!defined($buildid) && defined($dist)) {
# First try to get the build ID from the files in dist/.
my $find_master = `find $dist -iname master.ini -print`;

Просмотреть файл

@ -141,9 +141,16 @@
# Allow for non-client builds, e.g. camino.
#$moz_client_mk = 'client.mk';
# Set if you're building an app on top of XULRunner.
#$XULRunnerApp = 0;
#- Set if you want to build in a separate object tree
#$ObjDir = '';
# If the build is a combined xulrunner+something, set the "something"
# subdirectory: example "firefox/" - NOTE: need trailing slash!
#$SubObjDir = '';
# Extra build name, if needed.
#$BuildNameExtra = '';

Просмотреть файл

@ -168,6 +168,9 @@ $Tinderbox_server = 'tinderbox-daemon@tinderbox.mozilla.org';
# Allow for non-client builds, e.g. camino.
$moz_client_mk = 'client.mk';
# Set if you're building an app on top of XULRunner.
$XULRunnerApp = 0;
#- Set if you want to build in a separate object tree
$ObjDir = '';