зеркало из https://github.com/mozilla/gecko-dev.git
Check in Red Hat's spec files and remove the old outdated spec files utilities and patches. Not part of the regular build.
This commit is contained in:
Родитель
c1e8db36ec
Коммит
8df716e837
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 135 B |
|
@ -0,0 +1,51 @@
|
|||
/* XPM */
|
||||
/* Copyright © 2001, The Mozilla Organization. */
|
||||
/* http://mozilla.org/ <endico@mozilla.org> */
|
||||
static char * mozicon16_xpm[] = {
|
||||
"16 16 30 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
"+ c #E23621",
|
||||
"@ c #D4331F",
|
||||
"# c #C62F1D",
|
||||
"$ c #C2C2C2",
|
||||
"% c #BABABA",
|
||||
"& c #B82C1B",
|
||||
"* c #AA2919",
|
||||
"= c #9B2517",
|
||||
"- c #8F8F8F",
|
||||
"; c #8D2215",
|
||||
"> c #848484",
|
||||
", c #808080",
|
||||
"' c #7F1E13",
|
||||
") c #711B11",
|
||||
"! c #707070",
|
||||
"~ c #63180E",
|
||||
"{ c #606060",
|
||||
"] c #55140C",
|
||||
"^ c #505050",
|
||||
"/ c #47110A",
|
||||
"( c #390E08",
|
||||
"_ c #303030",
|
||||
": c #2A0A06",
|
||||
"< c #202020",
|
||||
"[ c #1C0704",
|
||||
"} c #101010",
|
||||
"| c #0E0302",
|
||||
"1 c #000000",
|
||||
" ",
|
||||
" ",
|
||||
" _1_ ",
|
||||
" %1+++1*@< ",
|
||||
" 11@)=/++11 ",
|
||||
" 1|1++;1++[+)1% ",
|
||||
" }1)+|+++;#++++{",
|
||||
"^^1++1+++11|++/_",
|
||||
" %1|+1(++/&1-1)_",
|
||||
" -11+++(@@]]+|1 ",
|
||||
" }1++++11 {% ",
|
||||
" ^(++++1 ",
|
||||
" |++#^ ",
|
||||
" >|1- ",
|
||||
" ",
|
||||
" "};
|
|
@ -0,0 +1,85 @@
|
|||
/* XPM */
|
||||
/* Copyright © 2001, The Mozilla Organization. */
|
||||
/* http://mozilla.org/ <endico@mozilla.org> */
|
||||
static char * mozicon50_xpm[] = {
|
||||
"50 50 30 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
"+ c #E23621",
|
||||
"@ c #D4331F",
|
||||
"# c #C62F1D",
|
||||
"$ c #C2C2C2",
|
||||
"% c #BABABA",
|
||||
"& c #B82C1B",
|
||||
"* c #AA2919",
|
||||
"= c #9B2517",
|
||||
"- c #8F8F8F",
|
||||
"; c #8D2215",
|
||||
"> c #848484",
|
||||
", c #808080",
|
||||
"' c #7F1E13",
|
||||
") c #711B11",
|
||||
"! c #707070",
|
||||
"~ c #63180E",
|
||||
"{ c #606060",
|
||||
"] c #55140C",
|
||||
"^ c #505050",
|
||||
"/ c #47110A",
|
||||
"( c #390E08",
|
||||
"_ c #303030",
|
||||
": c #2A0A06",
|
||||
"< c #202020",
|
||||
"[ c #1C0704",
|
||||
"} c #101010",
|
||||
"| c #0E0302",
|
||||
"1 c #000000",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" %!_|1111_!% ",
|
||||
" %^}1111111111<{{__1_^% ",
|
||||
" >|111~*#++*;(111|11[:1<% ",
|
||||
" %_111(#++++++++&1:~*+@@)1< ",
|
||||
" -|111;+++*~((/++;#+#)[11/|1% ",
|
||||
" {111|&+++;111]@++&;/1|~)1111- ",
|
||||
" %_1111;+++#111~+++'(:|(@;|1111{ ",
|
||||
" %<1111|#*@+])/1=++/)@+))+_!1[]11_% ",
|
||||
" -11111111=++@+*1*+*'1:&@]@;}}{;'|1|^% ",
|
||||
" !}1111111]++++++=#;|11/;+@&/='(:;@]111_> ",
|
||||
" !11}^|1111&+++++++;/111'+&@+)1[]*+++@)[11|^% ",
|
||||
" -_!%%_11111++++++#](((((|+@(;++#*+++++++&]|11<% ",
|
||||
" -11111[|+++++;~+++++++++&|~+++++++++++++;:1|- ",
|
||||
" !}1111[)[+++++|&++++++++&+;1:#+++++++++++++|1{ ",
|
||||
" !11|}11)@=++++*1@++++++++~+*11|'+++++++++++)11^ ",
|
||||
" !1}!!111~++++++*1;++++++++(*]1111(#+++++++++1[1< ",
|
||||
" ^- ^1111(++++++*1[@+++++++(|111111|'++++++++/+|_ ",
|
||||
" _1|_111@+++++;11]+++++++;111|111}<[;++++++@+(1 ",
|
||||
" ^}!-}111)+++++]111;+++++++:1[;111_{<}['&+++++:1 ",
|
||||
" {%%}1111|@++++)1;'(#++++++@/1;&(111{_-111(()=1_ ",
|
||||
" <11<111/+++++]:++#]+++++++&'@+*]|11_-}><^<}1! ",
|
||||
" {1_-_1111;+++++]]++)/@+++++++++@++=~:11_<}!}} ",
|
||||
" _- {11111|++++++=+++(|)@++@*)][1]#+++@;|1111^ ",
|
||||
" -1_1111/++++++++++@[11:[11111111:'&#;|1<_^% ",
|
||||
" <!_1111#+++++++++++@)|1111|^>!^<11111|{ ",
|
||||
" --}_|11++++++++++++@)1111^% %>{{{% ",
|
||||
" --}111));++++++++@:1|1|- ",
|
||||
" -_111[;+++++++++';@|1- ",
|
||||
" ^11(;+#+++++++]=++)1^ ",
|
||||
" _1:/'@+++++++*1(*]1> ",
|
||||
" %<1|=+++++++++'11|1 ",
|
||||
" ^11]@+++++*;+~11_ ",
|
||||
" >|1|)#++++((#[1^ ",
|
||||
" %^111/;#+&1111> ",
|
||||
" %^|1111(|111% ",
|
||||
" >^_|11111- ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
|
@ -0,0 +1,11 @@
|
|||
--- mozilla/layout/html/base/src/nsBlockFrame.cpp.alpha-compiler Mon Jan 1 23:56:52 2001
|
||||
+++ mozilla/layout/html/base/src/nsBlockFrame.cpp Mon Jan 1 23:57:44 2001
|
||||
@@ -563,7 +563,7 @@
|
||||
#define BRS_COMPUTEMAXWIDTH 0x00000400
|
||||
#define BRS_LASTFLAG BRS_COMPUTEMAXWIDTH
|
||||
|
||||
- PRInt16 mFlags;
|
||||
+ PRInt32 mFlags;
|
||||
|
||||
void SetFlag(PRUint32 aFlag, PRBool aValue)
|
||||
{
|
|
@ -0,0 +1,77 @@
|
|||
#!/bin/bash
|
||||
|
||||
# check our arguments
|
||||
|
||||
LIST_FILE=$1
|
||||
PACKAGE_FILE=$2
|
||||
TARGET_DIR=$3
|
||||
SRC_DIR=$4
|
||||
DIR_NAME=$5
|
||||
|
||||
if [ -z "$LIST_FILE" ]; then
|
||||
echo $0 list-file package-file target-dir src-dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$PACKAGE_FILE" ]; then
|
||||
echo $0 list-file package-file target-dir src-dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$TARGET_DIR" ]; then
|
||||
echo $0 list-file package-file target-dir src-dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$SRC_DIR" ]; then
|
||||
echo $0 list-file package-file target-dir src-dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$DIR_NAME" ]; then
|
||||
echo $0 list-file package-file target-dir src-dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "$LIST_FILE" ]; then
|
||||
echo $0 list file not found
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$TARGET_DIR" ]; then
|
||||
echo $0 target dir not found
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$SRC_DIR" ]; then
|
||||
echo $0 src dir not found
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# try to figure out if we should be using cp -Lr or cp -r
|
||||
|
||||
touch /tmp/foo-copy-package
|
||||
cp -L /tmp/foo-copy-package /tmp/foo-copy-package2 2>/dev/null >/dev/null
|
||||
if [ "$?" -ne "0" ]; then
|
||||
COPY="cp"
|
||||
else
|
||||
COPY="cp -L"
|
||||
fi
|
||||
|
||||
rm -f /tmp/foo-copy-package /tmp/foo-copy-package2
|
||||
|
||||
# OK, do our file copy
|
||||
|
||||
cd $SRC_DIR
|
||||
|
||||
for i in `cat $LIST_FILE`
|
||||
do
|
||||
$COPY -vrP ${i} ${TARGET_DIR}
|
||||
if [ "$?" -ne "0" ]; then
|
||||
echo "Copy of $i to $TARGET_DIR failed!"
|
||||
else
|
||||
echo ${DIR_NAME}/${i} >> $PACKAGE_FILE
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
--- mozilla/editor/ui/composer/content/editorOverlay.xul.debug Mon May 14 11:51:19 2001
|
||||
+++ mozilla/editor/ui/composer/content/editorOverlay.xul Mon May 14 11:51:42 2001
|
||||
@@ -791,60 +791,4 @@
|
||||
-->
|
||||
<menuitem id="menu_pasteQuote" accesskey="&editpastequotation.accesskey;" observes="cmd_pasteQuote"/>
|
||||
|
||||
- <!-- DEBUG only -->
|
||||
- <menu id="debugMenu" label="&debugMenu.label;">
|
||||
- <menupopup>
|
||||
- <menuitem label="&newEditorTestPage.label;" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
|
||||
- <menuitem label="&textEditorCmd.label;" oncommand="EditorNewPlaintext();" />
|
||||
- <menuitem label="&outputTextCmd.label;"
|
||||
- oncommand="EditorGetText()"/>
|
||||
- <menuitem label="&outputHTMLCmd.label;"
|
||||
- oncommand="EditorGetHTML()"/>
|
||||
- <menuitem label="Dom Serializer"
|
||||
- oncommand="EditorSerialize()"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&pasteAsQuotationCmd.label;"
|
||||
- accesskey="&editpastequotation.accesskey;"
|
||||
- oncommand="goDoCommand('cmd_pasteQuote')"/>
|
||||
- <menuitem label="&editRewrapCmd.label;"
|
||||
- oncommand="editorShell.Rewrap(true)"/>
|
||||
- <menuitem label="&editStripQuotesCmd.label;"
|
||||
- oncommand="editorShell.StripCites()"/>
|
||||
- <menuitem label="&insertTextCmd.label;"
|
||||
- oncommand="EditorInsertText('All good things come to those who wait. ')"/>
|
||||
- <menuitem label="Tableize"
|
||||
- oncommand="EditorTableize()"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&testSelectionCmd.label;"
|
||||
- oncommand="EditorTestSelection()"/>
|
||||
- <menuitem label="&testTableLayoutCmd.label;"
|
||||
- oncommand="EditorTestTableLayout()"/>
|
||||
- <menuitem label="&showEmbeddedCmd.label;"
|
||||
- oncommand="EditorShowEmbeddedObjects()"/>
|
||||
- <menuitem label="&dumpContentCmd.label;"
|
||||
- oncommand="EditorDumpContent()"/>
|
||||
- <menuitem label="&testDocumentCmd.label;"
|
||||
- oncommand="EditorTestDocument()"/>
|
||||
- <menuitem label="&runUnitTestsCmd.label;"
|
||||
- oncommand="EditorUnitTests()"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&dumpUndoStack.label;"
|
||||
- oncommand="DumpUndoStack()"/>
|
||||
- <menuitem label="&dumpRedoStack.label;"
|
||||
- oncommand="DumpRedoStack()"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&startLogCmd.label;"
|
||||
- oncommand="EditorStartLog()"/>
|
||||
- <menuitem label="&stopLogCmd.label;"
|
||||
- oncommand="EditorStopLog()"/>
|
||||
- <menuitem label="&runLogCmd.label;"
|
||||
- oncommand="EditorRunLog()"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&setFocusCmd.label;"
|
||||
- accesskey="&toolsetfocus.accesskey;"
|
||||
- oncommand="window.focus()"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
- <!-- end DEBUG only -->
|
||||
-
|
||||
</overlay>
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 880 B |
|
@ -0,0 +1,193 @@
|
|||
#!/usr/bin/perl -w
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher Blizzard.
|
||||
# Portions created by Christopher Blizzard are Copyright (C)
|
||||
# Christopher Blizzard. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
# This script will read one of the mozilla packages- file on unix and
|
||||
# copy it to a target directory. It's for unix only and is really
|
||||
# designed for use in building rpms or other packages.
|
||||
|
||||
use Getopt::Long;
|
||||
use File::Find;
|
||||
|
||||
use strict;
|
||||
|
||||
# global vars
|
||||
my $srcdir = "";
|
||||
my $package_name = "";
|
||||
my $package_file = "";
|
||||
my $output_file = "";
|
||||
my $shared_pass;
|
||||
my $retval;
|
||||
|
||||
# std return val
|
||||
|
||||
$retval = GetOptions('source=s', \$srcdir,
|
||||
'package=s', \$package_name,
|
||||
'package-file=s', \$package_file,
|
||||
'output-file=s', \$output_file,
|
||||
'shared!', \$shared_pass);
|
||||
|
||||
# make sure that all of the values are specific on the command line
|
||||
if (!$retval || !$srcdir || !$package_name ||
|
||||
!$package_file || !$output_file) {
|
||||
print_usage();
|
||||
exit 1;
|
||||
}
|
||||
|
||||
# try to open the packages file
|
||||
|
||||
open (PACKAGE_FILE, $package_file) || die("$0: Failed to open file $package_file for reading.");
|
||||
|
||||
print "chdir to $srcdir\n";
|
||||
chdir($srcdir);
|
||||
|
||||
my @file_list;
|
||||
my @exclude_list;
|
||||
my @final_file_list;
|
||||
my $reading_package = 0;
|
||||
|
||||
LINE: while (<PACKAGE_FILE>) {
|
||||
s/\;.*//; # it's a comment, kill it.
|
||||
s/^\s+//; # nuke leading whitespace
|
||||
s/\s+$//; # nuke trailing whitespace
|
||||
|
||||
# it's a blank line, skip it.
|
||||
if (/^$/) {
|
||||
next LINE;
|
||||
}
|
||||
|
||||
# it's a new component
|
||||
if (/^\[/) {
|
||||
my $this_package;
|
||||
( $this_package ) = /^\[(.+)\]$/;
|
||||
if ($this_package eq $package_name) {
|
||||
$reading_package = 1;
|
||||
}
|
||||
else {
|
||||
$reading_package = 0;
|
||||
}
|
||||
next LINE;
|
||||
}
|
||||
|
||||
# read this line
|
||||
if ($reading_package) {
|
||||
# see if it's a deletion
|
||||
if (/^-/) {
|
||||
my $this_file;
|
||||
( $this_file ) = /^-(.+)$/;
|
||||
push (@exclude_list, $this_file);
|
||||
}
|
||||
else {
|
||||
push (@file_list, $_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
close PACKAGE_FILE;
|
||||
|
||||
# Expand our file list
|
||||
|
||||
expand_file_list(\@file_list, \@exclude_list, \@final_file_list);
|
||||
|
||||
print "final file list\n";
|
||||
foreach (@final_file_list) {
|
||||
print $_ . "\n";
|
||||
}
|
||||
|
||||
open (OUTPUT_FILE, ">>$output_file") || die("Failed to open output file\n");
|
||||
foreach (@final_file_list) {
|
||||
# strip off the bin/
|
||||
s/^bin\///;
|
||||
|
||||
# if it's a shared library and we're doing a shared pass print it.
|
||||
# otherwise ignore it.
|
||||
my $is_shared_library = 0;
|
||||
$is_shared_library = /^[a-zA-Z0-9]+\.so$/;
|
||||
if ($shared_pass && $is_shared_library) {
|
||||
print ("Adding $_\n");
|
||||
print (OUTPUT_FILE $_ . "\n");
|
||||
}
|
||||
elsif (!$shared_pass && !$is_shared_library) {
|
||||
print ("Adding $_\n");
|
||||
print (OUTPUT_FILE $_ . "\n");
|
||||
}
|
||||
else {
|
||||
print("Ignoring $_\n");
|
||||
}
|
||||
}
|
||||
close OUTPUT_FILE;
|
||||
|
||||
#print "\nexlude list\n";
|
||||
#foreach (@exclude_list) {
|
||||
# print $_ . "\n";
|
||||
#}
|
||||
|
||||
# this function expands a list of files
|
||||
|
||||
sub expand_file_list {
|
||||
my $file_list_ref = shift;
|
||||
my $exclude_list_ref = shift;
|
||||
my $final_file_list_ref = shift;
|
||||
my $this_file;
|
||||
foreach $this_file (@{$file_list_ref}) {
|
||||
# is it a wild card?
|
||||
if ($this_file =~ /\*$/) {
|
||||
print "Wild card $this_file\n";
|
||||
# expand that wild card, removing anything in the exclude
|
||||
# list
|
||||
my @temp_list;
|
||||
@temp_list = glob($this_file);
|
||||
foreach $this_file (@temp_list) {
|
||||
if (!in_exclude_list($this_file, $exclude_list_ref)) {
|
||||
push (@{$final_file_list_ref}, $this_file);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!in_exclude_list($this_file, $exclude_list_ref)) {
|
||||
push (@{$final_file_list_ref}, $this_file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# is this file in the exlude list?
|
||||
|
||||
sub in_exclude_list {
|
||||
my $file = shift;
|
||||
my $exclude_list_ref = shift;
|
||||
my $this_file;
|
||||
foreach $this_file (@{$exclude_list_ref}) {
|
||||
if ($file eq $this_file) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# print out a usage message
|
||||
|
||||
sub print_usage {
|
||||
print ("$0: --source dir --package name --package-file file --output-file file [--shared]\n");
|
||||
print ("\t source is the source directory where the files can be found.\n");
|
||||
print ("\t package is the name of the package to list\n");
|
||||
print ("\t package-file is the file that contains the list of packages\n");
|
||||
print ("\t output-file is the file which will contain the list of files\n");
|
||||
print ("\t shared pulls out only the shared libraries\n");
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
--- mozilla/xpfe/browser/resources/content/navigatorOverlay.xul.debug Wed Apr 18 22:39:27 2001
|
||||
+++ mozilla/xpfe/browser/resources/content/navigatorOverlay.xul Wed Apr 18 22:41:09 2001
|
||||
@@ -343,123 +343,6 @@
|
||||
<menu id="tasksMenu"/>
|
||||
|
||||
<menu accesskey="&helpMenuCmd.accesskey;" id="menu_Help"/>
|
||||
- <!-- Menu for testing. -->
|
||||
- <menu id="debugMenu" accesskey="&debugMenu.accesskey;" label="&debugMenu.label;">
|
||||
- <menupopup>
|
||||
- <menu label="&debugVerCmd.label;">
|
||||
- <menupopup>
|
||||
- <menuitem label="&ver1Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org'"/>
|
||||
- <menuitem label="&ver2Cmd.label;" oncommand="window._content.location.href='http://www.yahoo.com'"/>
|
||||
- <menuitem label="&ver3Cmd.label;" oncommand="window._content.location.href='http://www.netscape.com'"/>
|
||||
- <menuitem label="&ver4Cmd.label;" oncommand="window._content.location.href='http://www.excite.com'"/>
|
||||
- <menuitem label="&ver5Cmd.label;" oncommand="window._content.location.href='http://www.microsoft.com'"/>
|
||||
- <menuitem label="&ver6Cmd.label;" oncommand="window._content.location.href='http://www.city.net'"/>
|
||||
- <menuitem label="&ver7Cmd.label;" oncommand="window._content.location.href='http://www.mirabilis.com'"/>
|
||||
- <menuitem label="&ver8Cmd.label;" oncommand="window._content.location.href='http://www.time.com/time/index.html'"/>
|
||||
- <menuitem label="&ver9Cmd.label;" oncommand="window._content.location.href='http://www.warnerbros.com/home_moz3_day.html'"/>
|
||||
- <menuitem label="&ver10Cmd.label;" oncommand="window._content.location.href='http://www.cnn.com'"/>
|
||||
- <menuitem label="&ver11Cmd.label;" oncommand="window._content.location.href='http://www.usatoday.com'"/>
|
||||
- <menuitem label="&ver12Cmd.label;" oncommand="window._content.location.href='http://www.disney.go.com'"/>
|
||||
- <menuitem label="&ver13Cmd.label;" oncommand="window._content.location.href='http://www.hotwired.com'"/>
|
||||
- <menuitem label="&ver14Cmd.label;" oncommand="window._content.location.href='http://www.hotbot.com'"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&ver15Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/browser/debugtc/bft_frame_index.html'"/>
|
||||
- <menuitem label="&ver16Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test6.html'"/>
|
||||
- <menuitem label="&ver17Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/browser/debugtc/bft_browser_applet.html'"/>
|
||||
- <menuitem label="&ver18Cmd.label;" oncommand="window._content.location.href='http://www.abcnews.com'"/>
|
||||
- <menuitem label="&ver19Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/browser/debugtc/bft_browser_imagemap.html'"/>
|
||||
- <menuitem label="&ver20Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test2.html'"/>
|
||||
- <menuitem label="&ver21Cmd.label;" oncommand="window._content.location.href='http://www.libpng.org/pub/png/png-MagnoliaAlpha.html'"/>
|
||||
- <menuitem label="&ver22Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test13.html'"/>
|
||||
- <menuitem label="&ver23Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test2.html'"/>
|
||||
- <menuitem label="&ver24Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/browser/debugtc/bft_browser_html_mix3.html'"/>
|
||||
- <menuitem label="&ver25Cmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/browser/debugtc/bft_browser_link.html'"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
-
|
||||
- <menu label="&viewDemoMenu.label;">
|
||||
- <menupopup>
|
||||
- <menuitem label="&demo0Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test0.html'"/>
|
||||
- <menuitem label="&demo1Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test1.html'"/>
|
||||
- <menuitem label="&demo2Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test2.html'"/>
|
||||
- <menuitem label="&demo3Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test3.html'"/>
|
||||
- <menuitem label="&demo4Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test4.html'"/>
|
||||
- <menuitem label="&demo5Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test5.html'"/>
|
||||
- <menuitem label="&demo6Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test6.html'"/>
|
||||
- <menuitem label="&demo7Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test7.html'"/>
|
||||
- <menuitem label="&demo8Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test8.html'"/>
|
||||
- <menuitem label="&demo9Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test9.html'"/>
|
||||
- <menuitem label="&demo10Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test10.html'"/>
|
||||
- <menuitem label="&demo11Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test11.html'"/>
|
||||
- <menuitem label="&demo12Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test12.html'"/>
|
||||
- <menuitem label="&demo13Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test13.html'"/>
|
||||
- <menuitem label="&demo14Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test14.html'"/>
|
||||
- <menuitem label="&demo15Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test15.html'"/>
|
||||
- <menuitem label="&demo16Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/test16.html'"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
-
|
||||
- <menu label="XBL Demos">
|
||||
- <menupopup>
|
||||
- <menuitem label="#0 Remote XBL" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test0/test.xul'"/>
|
||||
- <menuitem label="#1 Technicolor DIV" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test1/test.html'"/>
|
||||
- <menuitem label="#2 Rollover Madness" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test2/test.html'"/>
|
||||
- <menuitem label="#3 Popups in HTML" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test3/test.html'"/>
|
||||
- <menuitem label="#4 Partition Magic" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test4/test.html'"/>
|
||||
- <menuitem label="#5 Sticky Notes" oncommand="window._content.location.href='http://www.mozilla.org/projects/xbl/test5/test.html'"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
-
|
||||
- <menu label="&xptkMenu.label;">
|
||||
- <menupopup>
|
||||
- <menuitem label="&xptk1Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/checkboxTest.xul'"/>
|
||||
- <menuitem label="&xptk2Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/toolbarTest1.xul'"/>
|
||||
- <menuitem label="&xptk3Cmd.label;" oncommand="BrowserReallyReload(0)"/>
|
||||
- <menuitem label="&xptk4Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/dexopenchrome.xul'"/>
|
||||
- <menuitem label="&xptk7Cmd.label;" oncommand="BrowserReallyReload(0)"/>
|
||||
- <menuitem label="&xptk8Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/beeptest.html'"/>
|
||||
- <menuitem label="&xptk9Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/soundtest.html'"/>
|
||||
- <menuitem label="&xptk10Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/xpmenu.xul'"/>
|
||||
- <menuitem label="&xptk11Cmd.label;" oncommand="window._content.location.href='resource:/res/samples/colorpicker.xul'"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
-
|
||||
- <menuitem label="&domviewer.label;" oncommand="window._content.location.href='chrome://communicator/content/domviewer/DOMDataSourceViewer.xul'"/>
|
||||
- <menuitem label="&browserbuster.label;" oncommand="window._content.location.href='http://komodo.mozilla.org/buster/'"/>
|
||||
- <menuitem label="&editor-test-page.label;" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
|
||||
- <menuitem label="&flush-memory.label;" oncommand="Components.classes['@mozilla.org/xpcom/memory-service;1'].getService(Components.interfaces.nsIMemory).heapMinimize(true);" />
|
||||
-
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
-
|
||||
- <menu id="qaMenu" accesskey="&QA.accesskey;" label="&QA.label;">
|
||||
- <menupopup>
|
||||
- <menuitem label="&PrecheckinTests.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/precheckin-tests.html'"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&QABugCmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/bug-writing-guidelines.html'"/>
|
||||
- <menuitem label="&QATempCmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/help/bug-form.html'"/>
|
||||
- <menuitem label="&QASmokeCmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/smoketests/'"/>
|
||||
- <menuitem label="&QAKnownBugCmd.label;" oncommand="window._content.location.href='http://www.mozilla.org/quality/most-frequent-bugs/'"/>
|
||||
- <menuseparator />
|
||||
- <menuitem label="&strresCmd.label;" oncommand="window._content.location.href='resource:/res/strres-test.xul'"/>
|
||||
-
|
||||
- <menuseparator />
|
||||
- <menuitem label="&BloatDumpNewCmd.label;" oncommand="window._content.location.href='about:bloat?new'"/>
|
||||
- <menuitem label="&BloatDumpAllCmd.label;" oncommand="window._content.location.href='about:bloat'"/>
|
||||
- <menuitem label="&BloatClearCmd.label;" oncommand="window._content.location.href='about:bloat?clear'"/>
|
||||
-
|
||||
- <menuseparator />
|
||||
-
|
||||
- <menu label="Leak Detector">
|
||||
- <menupopup>
|
||||
- <menuitem label="&LeaksDumpLeaksCmd.label;" oncommand="dumpMemoryLeaks();"/>
|
||||
- <menuitem label="&LeaksTraceChromeCmd.label;" oncommand="traceChrome();"/>
|
||||
- <menuitem label="&LeaksTraceDocumentCmd.label;" oncommand="traceDocument();"/>
|
||||
- <menuitem label="&LeaksTraceVerboseCmd.label;" oncommand="traceVerbose(this.getAttribute('checked'))" type="checkbox" checked="false"/>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
- </menupopup>
|
||||
- </menu>
|
||||
</menubar>
|
||||
|
||||
</overlay>
|
|
@ -0,0 +1,14 @@
|
|||
[Desktop Entry]
|
||||
Name=Migrate Netscape Profile
|
||||
Name[es]=Migrador del perfil de Netscape
|
||||
Name[fr]=Profil de Migrate Netscape
|
||||
Name[ja]=Netscape プロファイルの移行
|
||||
Comment=Migrate Netscape Profile
|
||||
Comment[es]=Migrador del perfil de Netscape
|
||||
Comment[fr]=Profil de Migrate Netscape.
|
||||
Comment[it]=Profilo di Netscape Migrate
|
||||
Comment[ja]=Netscape プロファイルの移行
|
||||
Exec=/usr/bin/mozilla -installer
|
||||
Icon=mozilla-icon.png
|
||||
Terminal=0
|
||||
Type=Application
|
|
@ -0,0 +1,30 @@
|
|||
--- mozilla/xpfe/components/prefwindow/resources/content/preftree.xul.debug Mon May 14 12:33:18 2001
|
||||
+++ mozilla/xpfe/components/prefwindow/resources/content/preftree.xul Mon May 14 12:34:06 2001
|
||||
@@ -136,27 +136,6 @@
|
||||
</treechildren>
|
||||
</treeitem>
|
||||
|
||||
- <treeitem container="true" open="true" id="debugItem">
|
||||
- <treerow>
|
||||
- <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug.xul" label="&debug.label;"/>
|
||||
- </treerow>
|
||||
- <treechildren id="debugChildren">
|
||||
-
|
||||
- <treeitem>
|
||||
- <treerow>
|
||||
- <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug1.xul" label="&debug1.label;"/>
|
||||
- </treerow>
|
||||
- </treeitem>
|
||||
-
|
||||
- <treeitem>
|
||||
- <treerow>
|
||||
- <treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-debug2.xul" label="&debug2.label;"/>
|
||||
- </treerow>
|
||||
- </treeitem>
|
||||
-
|
||||
- </treechildren>
|
||||
- </treeitem>
|
||||
-
|
||||
<treeitem container="false" id="offlineItem">
|
||||
<treerow>
|
||||
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-offline.xul" label="&offline.label;"/>
|
|
@ -0,0 +1,14 @@
|
|||
[Desktop Entry]
|
||||
Name=Mozilla Profile Manager
|
||||
Name[es]=Gestor de Perfiles Mozilla
|
||||
Name[fr]=Profil de Mozilla Netscape
|
||||
Name[ja]=Mozilla プロファイルマネージャ
|
||||
Comment=Mozilla Profile Manager
|
||||
Comment[es]=Gestor de perfiles Mozilla
|
||||
Comment[fr]=Profil de Mozilla Netscape.
|
||||
Comment[it]=Manager del profilo di Mozilla
|
||||
Comment[ja]=Mozilla プロファイルマネージャ
|
||||
Exec=/usr/bin/mozilla -ProfileManager
|
||||
Icon=migrate-icon.gif
|
||||
Terminal=0
|
||||
Type=Application
|
|
@ -0,0 +1,18 @@
|
|||
--- mozilla/xpfe/browser/resources/locale/en-US/region.properties.home-page Mon Feb 26 11:01:33 2001
|
||||
+++ mozilla/xpfe/browser/resources/locale/en-US/region.properties Mon Feb 26 11:02:09 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
# navigator.properties
|
||||
-homePageDefault=http://www.mozilla.org/
|
||||
+homePageDefault=file:///usr/doc/HTML/index.html
|
||||
shopKeyword=keyword:shop [Product]
|
||||
quoteKeyword=keyword:quote [Enter symbol here]
|
||||
localKeyword=keyword:zip [Your zip code]
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# all.js
|
||||
#
|
||||
-browser.startup.homepage=http://www.mozilla.org/
|
||||
+browser.startup.homepage=file:///usr/doc/HTML/index.html
|
||||
browser.throbber.url=http://www.mozilla.org/
|
||||
|
||||
wallet.Server=http://www.mozilla.org/wallet/tables/
|
|
@ -0,0 +1,18 @@
|
|||
--- mozilla/xpfe/browser/resources/locale/en-US/region.properties.home-page Mon Feb 26 11:01:33 2001
|
||||
+++ mozilla/xpfe/browser/resources/locale/en-US/region.properties Mon Feb 26 11:02:09 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
# navigator.properties
|
||||
-homePageDefault=http://www.mozilla.org/
|
||||
+homePageDefault=file:///usr/share/doc/HTML/index.html
|
||||
shopKeyword=keyword:shop [Product]
|
||||
quoteKeyword=keyword:quote [Enter symbol here]
|
||||
localKeyword=keyword:zip [Your zip code]
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# all.js
|
||||
#
|
||||
-browser.startup.homepage=http://www.mozilla.org/
|
||||
+browser.startup.homepage=file:///usr/share/doc/HTML/index.html
|
||||
browser.throbber.url=http://www.mozilla.org/
|
||||
|
||||
wallet.Server=http://www.mozilla.org/wallet/tables/
|
|
@ -0,0 +1,11 @@
|
|||
--- mozilla/mailnews/base/resources/locale/en-US/region.properties.home-page Mon Feb 26 17:47:41 2001
|
||||
+++ mozilla/mailnews/base/resources/locale/en-US/region.properties Mon Feb 26 17:47:52 2001
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# messenger.properties
|
||||
# mailnews.js
|
||||
-mailnews.start_page.url=http://www.mozilla.org/mailnews/start.html
|
||||
+mailnews.start_page.url=about:blank
|
||||
messenger.throbber.url=http://www.mozilla.org/
|
||||
compose.throbber.url=http://www.mozilla.org/
|
||||
addressbook.throbber.url=http://www.mozilla.org/
|
|
@ -0,0 +1,50 @@
|
|||
--- mozilla/xpfe/communicator/resources/locale/en-US/taskbar.rdf.non-mozilla Mon Jan 15 14:41:41 2001
|
||||
+++ mozilla/xpfe/communicator/resources/locale/en-US/taskbar.rdf Mon Jan 15 14:42:10 2001
|
||||
@@ -1,47 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE RDF
|
||||
[
|
||||
-<!-- LOCALIZATION NOTE (mozillaButton.label): DONT_TRANSLATE -->
|
||||
-<!ENTITY mozillaButton.label "Mozilla">
|
||||
-<!ENTITY mozillaTooltip.label "Links to mozilla.org webtools">
|
||||
-<!-- taskbar popups -->
|
||||
-<!-- LOCALIZATION NOTE (bugzillaButton.label): Do NOT translate "Bugzilla" -->
|
||||
-<!ENTITY bugzillaButton.label "Go to Bugzilla">
|
||||
-<!ENTITY tinderboxButton.label "Look at Tinderbox">
|
||||
-<!-- LOCALIZATION NOTE (bonsai.label): Do NOT translate "Bonsai" -->
|
||||
-<!ENTITY bonsai.label "Look at Bonsai">
|
||||
-
|
||||
]
|
||||
>
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:NC="http://home.netscape.com/NC-rdf#">
|
||||
|
||||
<!-- root start -->
|
||||
- <RDF:Seq ID="root">
|
||||
-
|
||||
- <RDF:li>
|
||||
- <RDF:Seq about="urn:taskbar:mozilla-group">
|
||||
- <RDF:li resource="urn:taskbar:mozilla-group:bonsai" />
|
||||
- <RDF:li resource="urn:taskbar:mozilla-group:bugzilla" />
|
||||
- </RDF:Seq>
|
||||
- </RDF:li>
|
||||
-
|
||||
- </RDF:Seq>
|
||||
<!-- root end -->
|
||||
|
||||
-<!-- Description -->
|
||||
-<RDF:Description about="urn:taskbar:mozilla-group">
|
||||
- <NC:title>&mozillaButton.label;</NC:title>
|
||||
- <NC:tooltip>&mozillaTooltip.label;</NC:tooltip>
|
||||
-</RDF:Description>
|
||||
-
|
||||
- <RDF:Description about="urn:taskbar:mozilla-group:bonsai">
|
||||
- <NC:title>&bonsai.label;</NC:title>
|
||||
- <NC:content>openTopWin('http://bonsai.mozilla.org/toplevel.cgi?treeid=SeaMonkey')</NC:content>
|
||||
- </RDF:Description>
|
||||
-
|
||||
- <RDF:Description about="urn:taskbar:mozilla-group:bugzilla">
|
||||
- <NC:title>&bugzillaButton.label;</NC:title>
|
||||
- <NC:content>openTopWin('http://bugzilla.mozilla.org')</NC:content>
|
||||
- </RDF:Description>
|
||||
</RDF:RDF>
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=Mozilla
|
||||
Comment=Mozilla
|
||||
Exec=/usr/bin/mozilla
|
||||
Icon=mozilla-icon.png
|
||||
Terminal=0
|
||||
Type=Application
|
|
@ -56,60 +56,11 @@
|
|||
|
||||
cmdname=`basename $0`
|
||||
|
||||
##
|
||||
## location of the apprunner binary.
|
||||
##
|
||||
MOZ_APPRUNNER_NAME="/usr/lib/mozilla/bin/apprunner"
|
||||
|
||||
##
|
||||
## Variables
|
||||
##
|
||||
MOZ_DIST_BIN=""
|
||||
MOZ_PROGRAM=""
|
||||
|
||||
##
|
||||
## Functions
|
||||
##
|
||||
moz_bail()
|
||||
{
|
||||
message=$1
|
||||
|
||||
echo
|
||||
echo "$cmdname: $message"
|
||||
echo
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
moz_test_binary()
|
||||
{
|
||||
binary=$1
|
||||
|
||||
if [ -f "$binary" ]
|
||||
then
|
||||
if [ -x "$binary" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
moz_test_binary $MOZ_APPRUNNER_NAME
|
||||
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
|
||||
fi
|
||||
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x $MOZ_PROGRAM ]
|
||||
then
|
||||
moz_bail "Cannot execute $MOZ_PROGRAM."
|
||||
fi
|
||||
MOZ_DIST_BIN="/usr/lib/mozilla"
|
||||
MOZ_PROGRAM="/usr/lib/mozilla/mozilla-bin"
|
||||
|
||||
##
|
||||
## Set MOZILLA_FIVE_HOME
|
||||
|
@ -123,11 +74,74 @@ export MOZILLA_FIVE_HOME
|
|||
##
|
||||
if [ "$LD_LIBRARY_PATH" ]
|
||||
then
|
||||
LD_LIBRARY_PATH=/usr/lib/mozilla/lib:$LD_LIBRARY_PATH
|
||||
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:$LD_LIBRARY_PATH
|
||||
else
|
||||
LD_LIBRARY_PATH=/usr/lib/mozilla/lib
|
||||
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
# tell the glibc for 7.1 that we need to use the old thread stack size
|
||||
# model
|
||||
|
||||
export LD_ASSUME_KERNEL=2.2.5
|
||||
|
||||
# If there is no command line argument at all then try to open a new
|
||||
# window in an already running instance.
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
$MOZ_PROGRAM -remote "openurl(about:blank,new-window)" 2>/dev/null >/dev/null
|
||||
# no window found?
|
||||
RETURN_VAL=$?
|
||||
if [ "$RETURN_VAL" -eq "2" ]; then
|
||||
exec $MOZ_PROGRAM ${1+"$@"}
|
||||
fi
|
||||
if [ "$RETURN_VAL" -eq "0" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
echo "Error sending command."
|
||||
exit $RETURN_VAL
|
||||
fi
|
||||
|
||||
unset RETURN_VAL
|
||||
|
||||
# If there's a command line argument but it doesn't begin with a -
|
||||
# it's probably a url. Try to send it to a running instance.
|
||||
|
||||
USE_EXIST=0
|
||||
opt="$1"
|
||||
case "$opt" in
|
||||
-*) ;;
|
||||
*) USE_EXIST=1 ;;
|
||||
esac
|
||||
|
||||
if [ "$USE_EXIST" -eq "1" ]; then
|
||||
# check to make sure that the command contains at least a :/ in it.
|
||||
echo $opt | grep -e ':/' 2>/dev/null > /dev/null
|
||||
RETURN_VAL=$?
|
||||
if [ "$RETURN_VAL" -eq "1" ]; then
|
||||
# does it begin with a / ?
|
||||
echo $opt | grep -e '^/' 2>/dev/null > /dev/null
|
||||
RETURN_VAL=$?
|
||||
if [ "$RETURN_VAL" -eq "0" ]; then
|
||||
opt="file:$opt"
|
||||
elif [ -e `pwd`/$opt ]; then
|
||||
opt="file://`pwd`/$opt"
|
||||
else
|
||||
opt="http://$opt"
|
||||
fi
|
||||
fi
|
||||
# ok, send it
|
||||
$MOZ_PROGRAM -remote "openurl($opt)" 2>/dev/null > /dev/null
|
||||
RETURN_VAL=$?
|
||||
if [ "$RETURN_VAL" -eq "2" ]; then
|
||||
exec $MOZ_PROGRAM ${1+"$@"}
|
||||
fi
|
||||
if [ "$RETURN_VAL" -eq "0" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
echo "Error sending command."
|
||||
exit $RETURN_VAL
|
||||
fi
|
||||
|
||||
exec $MOZ_PROGRAM ${1+"$@"}
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f /usr/lib/mozilla/regxpcom ]; then
|
||||
|
||||
/bin/rm -rf /usr/lib/mozilla/chrome/overlayinfo
|
||||
/bin/rm -f /usr/lib/mozilla/chrome/*.rdf
|
||||
/bin/mkdir -p /usr/lib/mozilla/chrome/overlayinfo
|
||||
/bin/rm -f /usr/lib/mozilla/component.reg
|
||||
|
||||
MOZILLA_FIVE_HOME=/usr/lib/mozilla \
|
||||
/usr/lib/mozilla/regxpcom >/dev/null 2>/dev/null
|
||||
|
||||
MOZILLA_FIVE_HOME=/usr/lib/mozilla \
|
||||
/usr/lib/mozilla/regchrome >/dev/null 2>/dev/null
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -1,252 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
|
||||
# The way this thing works:
|
||||
#
|
||||
# + A packages file is parsed. This file contains something
|
||||
# that looks like this (note that spaces are illegal):
|
||||
#
|
||||
# +----------------------------------------------
|
||||
# |nspr:nsprpub
|
||||
# |core:build,db,xpcom,intl,js,modules/libutil,modules/security/freenav,modules/libpref,modules/libimg,modules/libjar,caps
|
||||
# |network:netwerk
|
||||
# |layout:htmlparser,gfx,dom,view,widget/timer,widget,layout,webshell,editor,modules/plugin
|
||||
# |xpinstall:xpinstall
|
||||
# |profile:profile
|
||||
# |xptoolkit:xpfe,rdf
|
||||
# |cookie:extensions/cookie
|
||||
# |wallet:extensions/wallet
|
||||
# |mailnews:mailnews
|
||||
# +----------------------------------------------
|
||||
#
|
||||
# + For each package, a list of modules corresponding to that
|
||||
# package is parsed. Each modules corresponds to a
|
||||
# directory somewhere in a mozilla build tree - usually
|
||||
# the toplevel ones (ie, layout, nsprpub, xpcom) but not
|
||||
# always (ie, extensions/wallet)
|
||||
#
|
||||
# + For each module, print-module-filelist.sh is invoked.
|
||||
# The output of that is parsed and converted from the
|
||||
# crazy mozilla install hierarchy to something that
|
||||
# makes sense on a linux box.
|
||||
#
|
||||
# For example:
|
||||
#
|
||||
# bin/components/libraptorhtml.so
|
||||
#
|
||||
# becomes
|
||||
#
|
||||
# %{prefix}/lib/mozilla/components/libraptorhtml.so
|
||||
#
|
||||
# + Also, this script determines which files belong in
|
||||
# a devel package. For example, "include/*" and "idl/*"
|
||||
|
||||
name=generate-package-info.sh
|
||||
|
||||
if [ $# -lt 4 ]
|
||||
then
|
||||
echo
|
||||
echo "Usage: $name package-list module-list-dir outdir mozdir"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
package_list=$1
|
||||
module_list_dir=$2
|
||||
outdir=$3
|
||||
mozdir=$4
|
||||
|
||||
if [ ! -f $package_list ]
|
||||
then
|
||||
echo
|
||||
echo "$name: Cant access package file $package_list."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $module_list_dir ]
|
||||
then
|
||||
echo
|
||||
echo "$name: Cant access module list dir $package_list."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $outdir ]
|
||||
then
|
||||
echo
|
||||
echo "$name: Cant access outdir $outdir."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $mozdir ]
|
||||
then
|
||||
echo
|
||||
echo "$name: Cant access mozdir $mozdir."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $outdir/*
|
||||
|
||||
packages=`cat $package_list | grep -v -e "^#.*$" | grep -v -e "^[ \t]*$"`
|
||||
|
||||
for p in $packages
|
||||
do
|
||||
package=`echo $p | awk -F":" '{ print $1; }'`
|
||||
|
||||
modules=`echo $p | awk -F":" '{ print $2; }' | tr "," " "`
|
||||
|
||||
file_list=$outdir/mozilla-$package-file-list.txt
|
||||
file_list_devel=$outdir/mozilla-$package-devel-file-list.txt
|
||||
|
||||
tmp_raw=/tmp/raw-list.$$.tmp
|
||||
|
||||
tmp_file_list=/tmp/file-list.$$.tmp
|
||||
tmp_file_list_devel=/tmp/file-list-devel.$$.tmp
|
||||
|
||||
tmp_dir_list=/tmp/dir-list.$$.tmp
|
||||
tmp_dir_list_devel=/tmp/dir-list-devel.$$.tmp
|
||||
|
||||
# echo "package=$package"
|
||||
# echo "modules=$modules"
|
||||
# echo "file_list=$file_list"
|
||||
# echo "file_list_devel=$file_list_devel"
|
||||
# echo "#################"
|
||||
|
||||
rm -f $tmp_raw $file_list $file_list_devel
|
||||
rm -f $tmp_file_list $tmp_file_list_devel
|
||||
rm -f $tmp_dir_list $tmp_dir_list_devel
|
||||
|
||||
touch $tmp_raw $file_list $file_list_devel
|
||||
touch $tmp_file_list $tmp_file_list_devel
|
||||
touch $tmp_dir_list $tmp_dir_list_devel
|
||||
|
||||
print_cmd=$mozdir/build/package/rpm/print-module-filelist.sh
|
||||
|
||||
here=`pwd`
|
||||
|
||||
# Write the raw file list
|
||||
for m in $modules
|
||||
do
|
||||
cd $mozdir/$m
|
||||
$print_cmd >> $tmp_raw
|
||||
done
|
||||
|
||||
cd $here
|
||||
|
||||
# Munge the raw list into the file list
|
||||
for i in `cat $tmp_raw`
|
||||
do
|
||||
prefix=`echo $i | awk -F"/" '{ print $1; }'`
|
||||
|
||||
case "$prefix"
|
||||
in
|
||||
# dirs
|
||||
DIR:*)
|
||||
dir=`echo $i | cut -b5-`
|
||||
|
||||
case "$dir"
|
||||
in
|
||||
include*)
|
||||
echo $dir >> $tmp_dir_list_devel
|
||||
;;
|
||||
|
||||
*)
|
||||
prefix2=`echo $dir | awk -F"/" '{ print $2; }'`
|
||||
|
||||
case "$prefix2"
|
||||
in
|
||||
# Cut out the "bin/" from these
|
||||
res|chrome|defaults)
|
||||
echo $dir | cut -b5- >> $tmp_dir_list
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
##
|
||||
## XXX: This one needs to be smarter and catch more devel only
|
||||
## stuff. For example, the gecko viewer and all its resources
|
||||
## should go in the devel package. This would in turn make the
|
||||
## regular package smaller.
|
||||
##
|
||||
|
||||
# include, idl, lib
|
||||
include|idl|lib)
|
||||
echo $i >> $tmp_file_list_devel
|
||||
;;
|
||||
|
||||
# bin the evil
|
||||
bin)
|
||||
prefix2=`echo $i | awk -F"/" '{ print $2; }'`
|
||||
|
||||
case "$prefix2"
|
||||
in
|
||||
# Cut out the "bin/" from these
|
||||
components|res|chrome|defaults|netscape.cfg)
|
||||
echo $i | cut -b5- >> $tmp_file_list
|
||||
;;
|
||||
|
||||
# whatever else in "bin/"
|
||||
*)
|
||||
# Move special files in "bin/" around
|
||||
base=`basename $i`
|
||||
|
||||
case "$base"
|
||||
in
|
||||
# Mozilla brillantly puts .so files in "bin/" bleh
|
||||
*.so)
|
||||
echo "lib/$base" >> $tmp_file_list
|
||||
;;
|
||||
|
||||
*)
|
||||
echo $i >> $tmp_file_list
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
# whatever else
|
||||
*)
|
||||
echo $i >> $tmp_file_list
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
|
||||
# Spit out sorted file lists
|
||||
cat $tmp_dir_list | sort | uniq | awk '{ printf("%%dir %%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list
|
||||
|
||||
cat $tmp_file_list | sort | uniq | awk '{ printf("%%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list
|
||||
|
||||
cat $tmp_dir_list_devel | sort | uniq | awk '{ printf("%%dir %%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list_devel
|
||||
|
||||
cat $tmp_file_list_devel | sort | uniq | awk '{ printf("%%{prefix}/lib/mozilla/%s\n" , $0); }' >> $file_list_devel
|
||||
|
||||
# Cleanup
|
||||
rm -f $tmp_raw $tmp_file_list $tmp_file_list_devel $tmp_dir_list $tmp_dir_list_devel
|
||||
done
|
|
@ -1,125 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# A hack to make mozilla rpms in place.
|
||||
here=`pwd`
|
||||
|
||||
if [ ! -d ./mozilla ]
|
||||
then
|
||||
printf "\n\nDude, you have to be on the root of the mozilla cvs tree.\n\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rpm_place=$here/rpm_on_demand_dir
|
||||
|
||||
rm -rf $rpm_place
|
||||
|
||||
mkdir -p $rpm_place
|
||||
|
||||
mkdir -p $rpm_place/tarball
|
||||
mkdir -p $rpm_place/home
|
||||
mkdir -p $rpm_place/topdir
|
||||
mkdir -p $rpm_place/topdir/BUILD
|
||||
mkdir -p $rpm_place/topdir/RPMS
|
||||
mkdir -p $rpm_place/topdir/RPMS/i386
|
||||
mkdir -p $rpm_place/topdir/RPMS/noarch
|
||||
mkdir -p $rpm_place/topdir/SOURCES
|
||||
mkdir -p $rpm_place/topdir/SPECS
|
||||
mkdir -p $rpm_place/topdir/SRPMS
|
||||
|
||||
_top_dir=$rpm_place/topdir
|
||||
|
||||
_spec_dir=$_top_dir/SPECS
|
||||
|
||||
_sources_dir=$_top_dir/SOURCES
|
||||
|
||||
_rpms_dir=$_top_dir/RPMS
|
||||
|
||||
_home=$rpm_place/home
|
||||
|
||||
_rpm_macros=$_home/.rpmmacros
|
||||
|
||||
_tarball_dir=$rpm_place/tarball
|
||||
|
||||
#_spec_file=$here/build/package/rpm/mozilla.spec
|
||||
|
||||
##
|
||||
## Setup a phony topdir for the phony rpm macros file
|
||||
##
|
||||
echo "%_topdir $_top_dir" >> $_rpm_macros
|
||||
|
||||
##
|
||||
## Make a tarball of the beast
|
||||
##
|
||||
cd $_tarball_dir
|
||||
cvs co mozilla/client.mk
|
||||
make -f mozilla/client.mk pull_all
|
||||
|
||||
tar vzcf mozilla-source.tar.gz mozilla
|
||||
|
||||
#XXXX YANK
|
||||
#cp /tmp/mozilla-source.tar.gz .
|
||||
#XXXX YANK
|
||||
|
||||
tarball=`/bin/ls -1 mozilla*.tar.gz | head -1`
|
||||
|
||||
if [ ! -f $tarball ]
|
||||
then
|
||||
printf "\n\nDude, failed to make mozilla tarball.\n\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Put the tarball in the SOURCES dir
|
||||
mv -f $tarball $_sources_dir
|
||||
|
||||
printf "\n\nMozilla tarball = %s\n\n" $_sources_dir/$tarball
|
||||
|
||||
# Find the spec file from the rpm
|
||||
spec_in_rpm=`tar tzvf $_sources_dir/$tarball |grep -w "mozilla\.spec$" | awk '{ print $6; }'`
|
||||
|
||||
printf "\n\nspec_in_rpm=%s\n\n" $spec_in_rpm
|
||||
|
||||
# Extract the spec file from the tarball
|
||||
spec_in_rpm_dir=`echo $spec_in_rpm | awk -F"/" '{ print $1; }'`
|
||||
|
||||
printf "\n\nspec_in_rpm_dir=%s\n\n" $spec_in_rpm_dir
|
||||
|
||||
tar zvxf $_sources_dir/$tarball $spec_in_rpm
|
||||
|
||||
#_spec_file=`/bin/ls -1 $spec_in_rpm_dir | grep "\.spec$" | head -1`
|
||||
|
||||
#printf "\n\n_spec_file=%s\n\n" $_spec_file
|
||||
|
||||
if [ ! -f $spec_in_rpm ]
|
||||
then
|
||||
printf "\n\nFailed to extract spec file from tarball.\n\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Put the spec file in SPECS
|
||||
#cp $spec_in_rpm $_spec_dir
|
||||
|
||||
#XXXX YANK
|
||||
cp /tmp/mozilla.spec $_spec_dir
|
||||
#XXXX YANK
|
||||
|
||||
HOME=$_home rpm -ba $_spec_dir/mozilla.spec # > /dev/null 2>&1
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
mkdir -p $rpm_place/RPMS
|
||||
|
||||
cp $_rpms_dir/i386/*.rpm $rpm_place/RPMS/
|
||||
|
||||
last=`/bin/ls -lt1 $rpm_place/RPMS|head -1`
|
||||
|
||||
echo "New RPM written to RPMS/$last"
|
||||
else
|
||||
echo "Failed to build the rpm. Check the spec file."
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
cd $rpm_place
|
||||
|
||||
# Cleanup
|
||||
rm -rf $rpm_place/topdir $rpm_place/home
|
|
@ -1,10 +0,0 @@
|
|||
nspr:nsprpub
|
||||
core:build,db,xpcom,intl,js,modules/libutil,modules/security/freenav,modules/libpref,modules/libimg,modules/libjar,caps
|
||||
network:netwerk
|
||||
layout:htmlparser,gfx,dom,view,widget/timer,widget,layout,webshell,editor,modules/plugin
|
||||
xpinstall:xpinstall
|
||||
profile:profile
|
||||
xptoolkit:xpfe,rdf
|
||||
cookie:extensions/cookie
|
||||
wallet:extensions/wallet
|
||||
mailnews:mailnews
|
|
@ -1,115 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
##
|
||||
## Usage:
|
||||
##
|
||||
## $ mozilla
|
||||
##
|
||||
## This script is meant to run a mozilla program from the mozilla
|
||||
## rpm installation.
|
||||
##
|
||||
## The script will setup all the environment voodoo needed to make
|
||||
## mozilla work.
|
||||
|
||||
##
|
||||
## Standard shell script disclaimer blurb thing:
|
||||
##
|
||||
## This script is a hcak. Its brute force. Its horrible.
|
||||
## It doesnt use Artificial Intelligence. It doesnt use Virtual Reality.
|
||||
## Its not perl. Its not python. It probably wont work unchanged on
|
||||
## the "other" thousands of unices. But it worksforme.
|
||||
##
|
||||
## If you have an improvement, patch, idea, whatever, on how to make this
|
||||
## script better, post it here:
|
||||
##
|
||||
## news://news.mozilla.org/netscape.public.mozilla.patches
|
||||
## news://news.mozilla.org/netscape.public.mozilla.unix
|
||||
##
|
||||
##
|
||||
|
||||
##
|
||||
## Potential improvements:
|
||||
##
|
||||
## + Run ldd on the program and report missing dlls
|
||||
## + All the "other" unices/packages
|
||||
##
|
||||
|
||||
cmdname=`basename $0`
|
||||
|
||||
##
|
||||
## location of the viewer binary.
|
||||
##
|
||||
MOZ_VIEWER_NAME="/usr/lib/mozilla/bin/viewer"
|
||||
|
||||
##
|
||||
## Variables
|
||||
##
|
||||
MOZ_PROGRAM=""
|
||||
|
||||
##
|
||||
## Functions
|
||||
##
|
||||
moz_bail()
|
||||
{
|
||||
message=$1
|
||||
|
||||
echo
|
||||
echo "$cmdname: $message"
|
||||
echo
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
moz_test_binary()
|
||||
{
|
||||
binary=$1
|
||||
|
||||
if [ -f "$binary" ]
|
||||
then
|
||||
if [ -x "$binary" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
|
||||
|
||||
moz_test_binary $MOZ_PROGRAM
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
moz_bail "Cannot execute $MOZ_PROGRAM."
|
||||
fi
|
||||
|
||||
##
|
||||
## Set MOZILLA_FIVE_HOME
|
||||
##
|
||||
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
|
||||
|
||||
export MOZILLA_FIVE_HOME
|
||||
|
||||
exec $MOZ_PROGRAM ${1+"$@"}
|
|
@ -1,410 +0,0 @@
|
|||
Summary: Mozilla and stuff
|
||||
Name: mozilla
|
||||
Version: 666
|
||||
Release: 0
|
||||
Serial: 0
|
||||
Copyright: NPL/MPL
|
||||
Group: Mozilla
|
||||
Source0: ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.gz
|
||||
#Source0: ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-binary.tar.gz
|
||||
Buildroot: /var/tmp/mozilla-root
|
||||
Prefix: /usr
|
||||
Requires: gtk+ >= 1.2.4
|
||||
|
||||
#
|
||||
# TODO: lots of stuff
|
||||
#
|
||||
# + Add nice summary and description entries
|
||||
#
|
||||
# + Make sure the requires entries make sense
|
||||
#
|
||||
# + Add more packages for other mozilla extensions (for instance: irc)
|
||||
#
|
||||
# + Remove and/or combine the current packages that make more sense
|
||||
#
|
||||
# + mozilla-xpcom package ?
|
||||
#
|
||||
# + should nspr be its own package ?
|
||||
#
|
||||
# + it is probably a good idea to have a mozilla-browser package
|
||||
# instead of mozilla-xptoolkit
|
||||
#
|
||||
# + the mozilla-xpinstall package obviously doesnt make sense -
|
||||
# its there for show
|
||||
#
|
||||
# + a lot of stuff is dumped into the default package that
|
||||
# should really be in the devel package. For example the
|
||||
# gecko viewer and all its tests.
|
||||
#
|
||||
# For the code that determines what goes where, see:
|
||||
#
|
||||
# mozilla/build/package/rpm/print-module-filelist.sh
|
||||
# mozilla/build/package/rpm/generate-package-info.sh
|
||||
#
|
||||
|
||||
#Exclusivearch: i386
|
||||
|
||||
%description
|
||||
Mozilla is the king of all beasts - big badass Beasts.
|
||||
|
||||
%package nspr
|
||||
Summary: mozilla-nspr
|
||||
Group: Mozilla
|
||||
|
||||
%description nspr
|
||||
mozilla-nspr
|
||||
|
||||
%package nspr-devel
|
||||
Requires: mozilla-nspr
|
||||
Summary: mozilla-nspr-devel
|
||||
Group: Mozilla
|
||||
|
||||
%description nspr-devel
|
||||
mozilla-nspr devel
|
||||
|
||||
%package core
|
||||
Summary: mozilla-core
|
||||
Group: Mozilla
|
||||
Requires: mozilla-nspr
|
||||
|
||||
%description core
|
||||
mozilla-core
|
||||
|
||||
%package core-devel
|
||||
Requires: mozilla-core
|
||||
Summary: mozilla-core-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-nspr-devel
|
||||
|
||||
%description core-devel
|
||||
mozilla-core devel
|
||||
|
||||
%package network
|
||||
Summary: mozilla-network
|
||||
Group: Mozilla
|
||||
Requires: mozilla-core
|
||||
|
||||
%description network
|
||||
mozilla-network
|
||||
|
||||
%package network-devel
|
||||
Requires: mozilla-network
|
||||
Summary: mozilla-network-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-core-devel
|
||||
|
||||
%description network-devel
|
||||
mozilla-network devel
|
||||
|
||||
%package layout
|
||||
Summary: mozilla-layout
|
||||
Group: Mozilla
|
||||
Requires: mozilla-network
|
||||
|
||||
%description layout
|
||||
mozilla-layout
|
||||
|
||||
%package layout-devel
|
||||
Requires: mozilla-layout
|
||||
Summary: mozilla-layout-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-network-devel
|
||||
|
||||
%description layout-devel
|
||||
mozilla-layout devel
|
||||
|
||||
%package xpinstall
|
||||
Summary: mozilla-xpinstall
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description xpinstall
|
||||
mozilla-xpinstall
|
||||
|
||||
%package xpinstall-devel
|
||||
Requires: mozilla-xpinstall
|
||||
Summary: mozilla-xpinstall-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description xpinstall-devel
|
||||
mozilla-xpinstall devel
|
||||
|
||||
%package profile
|
||||
Summary: mozilla-profile
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description profile
|
||||
mozilla-profile
|
||||
|
||||
%package profile-devel
|
||||
Requires: mozilla-profile
|
||||
Summary: mozilla-profile-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description profile-devel
|
||||
mozilla-profile devel
|
||||
|
||||
%package xptoolkit
|
||||
Summary: mozilla-xptoolkit
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description xptoolkit
|
||||
mozilla-xptoolkit
|
||||
|
||||
%package xptoolkit-devel
|
||||
Requires: mozilla-xptoolkit
|
||||
Summary: mozilla-xptoolkit-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description xptoolkit-devel
|
||||
mozilla-xptoolkit devel
|
||||
|
||||
%package cookie
|
||||
Summary: mozilla-cookie
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description cookie
|
||||
mozilla-cookie
|
||||
|
||||
%package cookie-devel
|
||||
Requires: mozilla-cookie
|
||||
Summary: mozilla-cookie-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description cookie-devel
|
||||
mozilla-cookie devel
|
||||
|
||||
%package wallet
|
||||
Summary: mozilla-wallet
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description wallet
|
||||
mozilla-wallet
|
||||
|
||||
%package wallet-devel
|
||||
Requires: mozilla-wallet
|
||||
Summary: mozilla-wallet-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description wallet-devel
|
||||
mozilla-wallet devel
|
||||
|
||||
%package mailnews
|
||||
Summary: mozilla-mailnews
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout
|
||||
|
||||
%description mailnews
|
||||
mozilla-mailnews
|
||||
|
||||
%package mailnews-devel
|
||||
Requires: mozilla-mailnews
|
||||
Summary: mozilla-mailnews-devel
|
||||
Group: Mozilla
|
||||
Requires: mozilla-layout-devel
|
||||
|
||||
%description mailnews-devel
|
||||
mozilla-mailnews devel
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n mozilla
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
################################
|
||||
#
|
||||
# Remember where we are
|
||||
#
|
||||
################################
|
||||
here=`pwd`
|
||||
|
||||
################################
|
||||
#
|
||||
# configure
|
||||
#
|
||||
################################
|
||||
|
||||
if [ 1 ]
|
||||
then
|
||||
###
|
||||
###
|
||||
###
|
||||
rm -f $here/blank
|
||||
|
||||
touch $here/blank
|
||||
|
||||
MOZCONFIG=blank
|
||||
|
||||
export MOZCONFIG
|
||||
|
||||
./configure --disable-tests --with-xlib=no --with-motif=no --enable-strip-libs --disable-debug --enable-optimize --disable-gtk-mozilla
|
||||
|
||||
make
|
||||
|
||||
fi
|
||||
################################
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/mozilla
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/plugins
|
||||
|
||||
################################
|
||||
#
|
||||
# Generate the package lists
|
||||
#
|
||||
################################
|
||||
here=`pwd`
|
||||
|
||||
mkdir -p $here/file-lists
|
||||
|
||||
cd build/package/rpm
|
||||
|
||||
./generate-package-info.sh mozilla-package-list.txt . $here/file-lists $here
|
||||
|
||||
cd $here
|
||||
################################
|
||||
|
||||
################################
|
||||
#
|
||||
# Copy the stuff in dist/* to the rpm stage place
|
||||
#
|
||||
################################
|
||||
cp -r dist/* $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/
|
||||
|
||||
cd $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/
|
||||
|
||||
/bin/mv -f bin/*.so lib
|
||||
/bin/mv -f bin/chrome .
|
||||
/bin/mv -f bin/components .
|
||||
/bin/mv -f bin/defaults .
|
||||
/bin/mv -f bin/netscape.cfg .
|
||||
/bin/mv -f bin/res .
|
||||
|
||||
strip lib/*.so
|
||||
strip components/*.so
|
||||
|
||||
cd $here
|
||||
|
||||
install -m 755 build/package/rpm/mozilla $RPM_BUILD_ROOT/%{prefix}/lib/mozilla/bin
|
||||
################################
|
||||
|
||||
##
|
||||
## This function gets called on the %post stage to make sure any
|
||||
## new components that are installed in the system get
|
||||
## registered to component.reg
|
||||
##
|
||||
%define call_regxpcom here=`pwd` ; cd %{prefix}/lib/mozilla ; LD_LIBRARY_PATH=`pwd`/lib ./bin/regxpcom ; cd $here
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f file-lists/mozilla-nspr-file-list.txt nspr
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-nspr-devel-file-list.txt nspr-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-core-file-list.txt core
|
||||
%defattr(-,root,root)
|
||||
%dir %{prefix}/lib/mozilla
|
||||
%dir %{prefix}/lib/mozilla/bin
|
||||
%dir %{prefix}/lib/mozilla/chrome
|
||||
%dir %{prefix}/lib/mozilla/components
|
||||
%dir %{prefix}/lib/mozilla/defaults
|
||||
%dir %{prefix}/lib/mozilla/defaults/pref
|
||||
%dir %{prefix}/lib/mozilla/lib
|
||||
%dir %{prefix}/lib/mozilla/plugins
|
||||
%dir %{prefix}/lib/mozilla/res
|
||||
|
||||
%files -f file-lists/mozilla-core-devel-file-list.txt core-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post core
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-network-file-list.txt network
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-network-devel-file-list.txt network-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post network
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-layout-file-list.txt layout
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-layout-devel-file-list.txt layout-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post layout
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-xpinstall-file-list.txt xpinstall
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-xpinstall-devel-file-list.txt xpinstall-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post xpinstall
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-profile-file-list.txt profile
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-profile-devel-file-list.txt profile-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post profile
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-xptoolkit-file-list.txt xptoolkit
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-xptoolkit-devel-file-list.txt xptoolkit-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post xptoolkit
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-cookie-file-list.txt cookie
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-cookie-devel-file-list.txt cookie-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post cookie
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-wallet-file-list.txt wallet
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-wallet-devel-file-list.txt wallet-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post wallet
|
||||
%{call_regxpcom}
|
||||
|
||||
%files -f file-lists/mozilla-mailnews-file-list.txt mailnews
|
||||
%defattr(-,root,root)
|
||||
|
||||
%files -f file-lists/mozilla-mailnews-devel-file-list.txt mailnews-devel
|
||||
%defattr(-,root,root)
|
||||
|
||||
%post mailnews
|
||||
%{call_regxpcom}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 20 1999 Ramiro Estrugo <ramiro@fateware.com>
|
||||
- First rev.
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# The way this thing works:
|
||||
#
|
||||
# + a phony $(DIST) is created: /tmp/foo
|
||||
#
|
||||
# + The module is instaled there so that it can be isolated and
|
||||
# catalogued.
|
||||
#
|
||||
# + A bunch of case statements determine what gets ignored
|
||||
# and what is otherwise echoed as a file or dir member for
|
||||
# the module
|
||||
#
|
||||
# + Most of this hacks are a result of the totally messed
|
||||
# way in which mozilla pretentsto do "make install"
|
||||
|
||||
here=`pwd`
|
||||
|
||||
dist=/tmp/dist-$$.tmp
|
||||
|
||||
raw_file_list=/tmp/raw-file-list-$$.txt
|
||||
file_list=/tmp/file-list-$$.txt
|
||||
|
||||
raw_dir_list=/tmp/raw-dir-list-$$.txt
|
||||
dir_list=/tmp/dir-list-$$.txt
|
||||
|
||||
rm -rf $dist $raw_file_list $file_list $raw_dir_list $dir_list
|
||||
|
||||
# Need to mkdir include or else "make export" in mozilla gets confused
|
||||
mkdir -p $dist
|
||||
mkdir -p $dist/include
|
||||
|
||||
make -s DIST=$dist XPDIST=$dist PUBLIC=$dist/include EXTRA_DEPS= >/dev/null 2>&1
|
||||
|
||||
cd $dist
|
||||
|
||||
find -type l | cut -b3- > $raw_file_list
|
||||
find -type d | cut -b3- | grep -v -e "^[ \t]*$" > $raw_dir_list
|
||||
|
||||
touch $file_list
|
||||
|
||||
for i in `cat $raw_file_list`
|
||||
do
|
||||
skip="false"
|
||||
|
||||
dir=`echo $i | awk -F"/" '{ print $1; }'`
|
||||
|
||||
# "lib" voodoo
|
||||
if [ "$dir" = "lib" ]
|
||||
then
|
||||
rest=`echo $i | cut -b5-`
|
||||
|
||||
bin_dup="bin/$rest"
|
||||
|
||||
# Dont output files in "lib/" that are duplicated in "bin/"
|
||||
if [ -f "$bin_dup" ]
|
||||
then
|
||||
skip="true"
|
||||
fi
|
||||
|
||||
# Test for files that need to be skipped
|
||||
file=`basename $i`
|
||||
|
||||
case "$file"
|
||||
in
|
||||
# Dont skip util .a files
|
||||
*util_s.a)
|
||||
:
|
||||
;;
|
||||
|
||||
# Dont skip nspr .a files
|
||||
libnspr*.a|libplc*|libplds*)
|
||||
:
|
||||
;;
|
||||
|
||||
# Skip all .a files
|
||||
*.a)
|
||||
skip="true"
|
||||
;;
|
||||
|
||||
# Skip .so files
|
||||
*.so)
|
||||
skip="true"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "$skip" != "true" ]
|
||||
then
|
||||
echo $i >> $file_list
|
||||
# else
|
||||
# echo "skipping $i"
|
||||
fi
|
||||
done
|
||||
|
||||
touch $dir_list
|
||||
|
||||
for i in `cat $raw_dir_list`
|
||||
do
|
||||
skip="false"
|
||||
|
||||
# Skip directories that are shared across all of mozilla's components
|
||||
case $i in
|
||||
# level 1
|
||||
include|idl|lib|bin)
|
||||
skip="true"
|
||||
;;
|
||||
|
||||
# level 2
|
||||
lib/components|bin/components|bin/chrome|bin/res|bin/defaults|bin/plugins)
|
||||
skip="true"
|
||||
;;
|
||||
|
||||
# level 3
|
||||
bin/defaults/pref)
|
||||
skip="true"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$skip" != "true" ]
|
||||
then
|
||||
echo DIR:$i >> $dir_list
|
||||
# else
|
||||
# echo "skipping $i"
|
||||
fi
|
||||
done
|
||||
|
||||
cat $file_list
|
||||
cat $dir_list
|
||||
|
||||
rm -rf $dist $raw_file_list $file_list $raw_dir_list $dir_list
|
||||
|
||||
cd $here
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
|
||||
module=`make -s echo-depth-path | cut -b9-`
|
||||
|
||||
echo $module
|
Загрузка…
Ссылка в новой задаче