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:
blizzard%redhat.com 2001-06-12 19:13:55 +00:00
Родитель c7f42c4009
Коммит e3d396e9a5
19 изменённых файлов: 619 добавлений и 0 удалений

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

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

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

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

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

@ -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>

Двоичные данные
build/package/rpm/SOURCES/mozilla-icon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 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,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,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,7 @@
[Desktop Entry]
Name=Mozilla
Comment=Mozilla
Exec=/usr/bin/mozilla
Icon=mozilla-icon.png
Terminal=0
Type=Application

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

@ -0,0 +1,147 @@
#!/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`
##
## Variables
##
MOZ_DIST_BIN="/usr/lib/mozilla"
MOZ_PROGRAM="/usr/lib/mozilla/mozilla-bin"
##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
export MOZILLA_FIVE_HOME
##
## Set LD_LIBRARY_PATH
##
if [ "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=/usr/lib/mozilla:/usr/lib/mozilla/plugins:$LD_LIBRARY_PATH
else
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