make MOZ_DISABLE_JAR_PACKAGING actually disable the building of jars. ports tinderboxes and other develoers were not ready for the extra build requirements. r=#mozilla

This commit is contained in:
cls%seawood.org 2000-09-21 06:22:06 +00:00
Родитель 87762fc67c
Коммит aa86baf57c
2 изменённых файлов: 35 добавлений и 22 удалений

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

@ -1,6 +1,6 @@
#!/perl
# make-jars [-c] [-v] [-d <destPath>] [-s <srcdir>] < <jar.mn>
# make-jars [-c] [-f] [-v] [-d <destPath>] [-s <srcdir>] < <jar.mn>
use strict;
@ -18,7 +18,7 @@ my $IS_FILE = 2;
my $objdir = getcwd;
getopts("d:s:cv");
getopts("d:s:cvf");
my $usrcdir = undef;
if (defined($::opt_s)) {
@ -43,6 +43,11 @@ if (defined($::opt_v)) {
$verbose = 1;
}
my $flatfilesonly = 0;
if (defined($::opt_f)) {
$flatfilesonly = 1;
}
if ($verbose) {
print "make-jars "
. ($copyFiles ? "-c " : "")
@ -111,22 +116,26 @@ sub JarIt
EnsureFileInDir("$indivPath/$file", $file, 0, 1);
}
}
if (!$flatfilesonly) {
if (!($args eq "")) {
my $cwd = getcwd;
my $err = 0;
#print("in $cwd; zip -u $destPath/$jarfile $args\n");
system("zip -u $destPath/$jarfile $args") == 0 or
$err = $? >> 8;
zipErrorCheck($err);
}
if (!($overrides eq "")) {
my $err = 0;
print "+++ overriding $overrides\n";
system("zip $destPath/$jarfile $overrides\n") == 0 or
$err = $? >> 8;
zipErrorCheck($err);
if (!($args eq "")) {
my $cwd = getcwd;
my $err = 0;
#print("in $cwd; zip -u $destPath/$jarfile $args\n");
system("zip -u $destPath/$jarfile $args") == 0 or
$err = $? >> 8;
zipErrorCheck($err);
}
if (!($overrides eq "")) {
my $err = 0;
print "+++ overriding $overrides\n";
system("zip $destPath/$jarfile $overrides\n") == 0 or
$err = $? >> 8;
zipErrorCheck($err);
}
}
Cleanup();
}

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

@ -1134,16 +1134,20 @@ endif
JAR_MANIFEST := $(srcdir)/jar.mn
ifdef MOZ_DISABLE_JAR_PACKAGING
_JAR_FLAT_FILES_ONLY=-f
_JAR_REGCHROME_JAR=1
else
_JAR_FLAT_FILES_ONLY=
_JAR_REGCHROME_JAR=0
endif
chrome::
@if test -f $(JAR_MANIFEST); then $(PERL) $(topsrcdir)/config/make-jars.pl -c -d $(DIST)/bin/chrome -s $(srcdir) < $(JAR_MANIFEST); fi
@if test -f $(JAR_MANIFEST); then $(PERL) $(topsrcdir)/config/make-jars.pl -c $(_JAR_FLAT_FILES_ONLY) -d $(DIST)/bin/chrome -s $(srcdir) < $(JAR_MANIFEST); fi
install:: chrome
ifdef MOZ_DISABLE_JAR_PACKAGING
REGCHROME = $(PERL) $(topsrcdir)/config/add-chrome.pl $(DIST)/bin/chrome/installed-chrome.txt 1
else
REGCHROME = $(PERL) $(topsrcdir)/config/add-chrome.pl $(DIST)/bin/chrome/installed-chrome.txt 0
endif
REGCHROME = $(PERL) $(topsrcdir)/config/add-chrome.pl $(DIST)/bin/chrome/installed-chrome.txt $(_JAR_REGCHROME_JAR)
##############################################################################