rpms/firefox/devel firefox.sh.in, 1.28, 1.29 firefox.spec, 1.241, 1.242 firefox-xremote-client.sh.in, 1.5, NONE

Martin Stransky (stransky) fedora-extras-commits at redhat.com
Mon Jan 28 14:11:47 UTC 2008


Author: stransky

Update of /cvs/pkgs/rpms/firefox/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24666

Modified Files:
	firefox.sh.in firefox.spec 
Removed Files:
	firefox-xremote-client.sh.in 
Log Message:
* Mon Jan 28 2008 Martin Stransky <stransky at redhat.com> 3.0-0.beta2.13
- cleared starting scripts, removed useless parts




Index: firefox.sh.in
===================================================================
RCS file: /cvs/pkgs/rpms/firefox/devel/firefox.sh.in,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- firefox.sh.in	22 Dec 2007 02:19:59 -0000	1.28
+++ firefox.sh.in	28 Jan 2008 14:10:56 -0000	1.29
@@ -61,8 +61,6 @@
 MOZ_DIST_BIN="$MOZ_LIB_DIR/firefox-FIREFOX_VERSION"
 MOZ_EXTENSIONS_DIR="$MOZ_DIST_BIN/extensions"
 MOZ_PROGRAM="$MOZ_DIST_BIN/firefox"
-MOZ_CLIENT_PROGRAM="$MOZ_DIST_BIN/firefox-xremote-client"
-MOZ_CLIENT_PROGRAM_PARAM="-a firefox"
 
 ##
 ## Set MOZ_GRE_CONF
@@ -103,6 +101,14 @@
 export MOZ_PLUGIN_PATH
 
 ##
+## If plugins are wrapped, check them
+##
+if [ -x "/usr/bin/mozilla-plugin-config" ]
+then
+  /usr/bin/mozilla-plugin-config
+fi
+
+##
 ## Set FONTCONFIG_PATH for Xft/fontconfig
 ##
 FONTCONFIG_PATH="/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft"
@@ -121,54 +127,7 @@
 # export MOZ_DISABLE_PANGO
 #
 
-function check_running() {
-    $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM 'ping()' 2>/dev/null >/dev/null
-    RETURN_VAL=$?
-    if [ "$RETURN_VAL" -eq "2" ]; then
-      echo 0
-      return 0
-    else
-      echo 1
-      return 1
-    fi
-}
-
-function open_mail() {
-    if [ "${ALREADY_RUNNING}" -eq "1" ]; then
-      exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM 'xfeDoCommand(openInbox)' \
-        2>/dev/null >/dev/null
-    else
-      exec $MOZ_PROGRAM $*
-    fi
-}
-
-function open_compose() {
-    if [ "${ALREADY_RUNNING}" -eq "1" ]; then
-      exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM 'xfeDoCommand(composeMessage)' \
-        2>/dev/null >/dev/null
-    else
-      exec $MOZ_PROGRAM $*
-    fi
-}
-
 # OK, here's where all the real work gets done
-##
-## If plugins are wrapped, check them
-##
-if [ -x "/usr/bin/mozilla-plugin-config" ]
-then
-  /usr/bin/mozilla-plugin-config
-fi
-
-# check to see if there's an already running instance or not
-#ALREADY_RUNNING=`check_running`
-ALREADY_RUNNING="0"
-
-# If there is no command line argument at all then try to open a new
-# window in an already running instance.
-if [ "${ALREADY_RUNNING}" -eq "1" ] && [ -z "$1" ]; then
-  exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "xfeDoCommand(openBrowser)" 2>/dev/null>/dev/null
-fi
 
 # check system locale
 MOZARGS=
@@ -180,47 +139,5 @@
 MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
 [ -f $MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
 
-
-# if there's no command line argument and there's not a running
-# instance then just fire up a new copy of the browser
-if [ -z "$1" ]; then
-  exec $MOZ_PROGRAM $MOZARGS 2>/dev/null >/dev/null
-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
-  -mail)
-      open_mail ${1+"$@"}
-      ;;
-  -compose)
-      open_compose ${1+"$@"}
-      ;;
-  -*) ;;
-  *) USE_EXIST=1 ;;
-esac
-
-if [ "${USE_EXIST}" -eq "1" ] && [ "${ALREADY_RUNNING}" -eq "1" ]; then
-  opt=`echo -n "$opt" | sed -e 's/,/%2c/g' -e 's/ /%20/g'`
-  # 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
-    # if it doesn't begin with a '/' and it exists when the pwd is
-    # prepended to it then append the full path
-    echo $opt | grep -e '^/' 2>/dev/null > /dev/null
-    if [ "${RETURN_VAL}" -ne "0" ] && [ -e "`pwd`/$opt" ]; then
-      opt="`pwd`/$opt"
-    fi
-    exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt)" 2>/dev/null >/dev/null
-  fi
-  # just pass it off if it looks like a url
-  exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt)" 2>/dev/null >/dev/null
-fi
-
+# Run the browser
 exec $MOZ_PROGRAM $MOZARGS ${1+"$@"}


Index: firefox.spec
===================================================================
RCS file: /cvs/pkgs/rpms/firefox/devel/firefox.spec,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -r1.241 -r1.242
--- firefox.spec	22 Jan 2008 06:57:16 -0000	1.241
+++ firefox.spec	28 Jan 2008 14:10:56 -0000	1.242
@@ -15,7 +15,7 @@
 Summary:        Mozilla Firefox Web browser
 Name:           firefox
 Version:        3.0
-Release:        0.beta2.12.nightly20080121%{?dist}
+Release:        0.beta2.13.nightly20080121%{?dist}
 URL:            http://www.mozilla.org/projects/firefox/
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -33,7 +33,6 @@
 Source21:       firefox.sh.in
 Source22:       firefox.png
 Source23:       firefox.1
-Source50:       firefox-xremote-client.sh.in
 Source100:      find-external-requires
 
 
@@ -181,10 +180,6 @@
 %{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/defaults/profile/bookmarks.html
 ln -s %{default_bookmarks_file} $RPM_BUILD_ROOT/%{mozappdir}/defaults/profile/bookmarks.html
 
-%{__cat} %{SOURCE50} | %{__sed} -e 's,FFDIR,%{mozappdir},g' -e 's,LIBDIR,%{_libdir},g' > \
-  $RPM_BUILD_ROOT/%{mozappdir}/firefox-xremote-client
-
-%{__chmod} 755 $RPM_BUILD_ROOT/%{mozappdir}/firefox-xremote-client
 %{__install} -p -D -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1
 
 %{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/firefox-config
@@ -299,7 +294,6 @@
 %{mozappdir}/icons
 %{mozappdir}/searchplugins
 %{mozappdir}/firefox
-%{mozappdir}/firefox-xremote-client
 %{mozappdir}/run-mozilla.sh
 %{mozappdir}/application.ini
 %{mozappdir}/modules/distribution.js
@@ -311,6 +305,9 @@
 #---------------------------------------------------------------------
 
 %changelog
+* Mon Jan 28 2008 Martin Stransky <stransky at redhat.com> 3.0-0.beta2.13
+- cleared starting scripts, removed useless parts
+
 * Mon Jan 21 2008 Christopher Aillon <caillon at redhat.com> 3.0-0.beta2.12
 - Update to latest trunk (2008-01-21)
 


--- firefox-xremote-client.sh.in DELETED ---




More information about the fedora-extras-commits mailing list