Made the archive builder guess its location more correctly
This was SVN commit r1674.
This commit is contained in:
parent
fc4a8c3206
commit
d56ae48aa1
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
@ -68,10 +70,23 @@ struct( FileData => [
|
|||||||
my $XMB_VERSION = 'A'; # TODO: Find a way of not having to update this manually
|
my $XMB_VERSION = 'A'; # TODO: Find a way of not having to update this manually
|
||||||
|
|
||||||
|
|
||||||
|
my $bin_dir = get_opt('bindir', undef);
|
||||||
my $bin_dir = get_opt('bindir', '../../../binaries');
|
|
||||||
my $mod_name = get_opt('mod', 'official');
|
my $mod_name = get_opt('mod', 'official');
|
||||||
|
|
||||||
|
if (not defined $bin_dir) {
|
||||||
|
# We might be running from binaries/system
|
||||||
|
if (-e "../../binaries") {
|
||||||
|
$bin_dir = "../../binaries";
|
||||||
|
|
||||||
|
# or maybe sources/tools/archbuilder
|
||||||
|
} elsif (-e "../../../binaries") {
|
||||||
|
$bin_dir = "../../../binaries";
|
||||||
|
|
||||||
|
# or maybe we have no idea
|
||||||
|
} else {
|
||||||
|
$bin_dir = ".";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
generate_archive($bin_dir, $mod_name);
|
generate_archive($bin_dir, $mod_name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user