Fix the startup script so that it can accept option arguments. This fixes

a problem with starting Mozilla from the KDE dock if another instance of
Mozilla is already running.

Tested by:	Vivek Khera <vivek@khera.org>
Approved by:	portmgr (kris)
This commit is contained in:
Joe Marcus Clarke 2002-11-27 22:48:54 +00:00
parent 60e37192e4
commit c5ed87bd03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71178
14 changed files with 69 additions and 44 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 0
CATEGORIES= www

View file

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 0
CATEGORIES= www

View file

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 2
PORTREVISION?= 3
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \

View file

@ -6,13 +6,18 @@ LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
case $1 in
-mail)
REMOTE_COMMAND="xfeDoCommand (openInbox)"
;;
-*)
exec ./$MOZILLA_EXEC "$@"
;;
*)
REMOTE_COMMAND="openURL($@, $LOCATION)"
;;
esac
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0

View file

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 0
CATEGORIES= www

View file

@ -6,7 +6,7 @@
#
PORTNAME= mozilla
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 0
CATEGORIES= www

View file

@ -7,7 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.0.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \
http://people.FreeBSD.org/~marcus/:local

View file

@ -6,13 +6,18 @@ LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
case $1 in
-mail)
REMOTE_COMMAND="xfeDoCommand (openInbox)"
;;
-*)
exec ./$MOZILLA_EXEC "$@"
;;
*)
REMOTE_COMMAND="openURL($@, $LOCATION)"
;;
esac
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0

View file

@ -7,7 +7,7 @@
PORTNAME= mozilla
PORTVERSION= 1.1
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \

View file

@ -6,13 +6,18 @@ LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
case $1 in
-mail)
REMOTE_COMMAND="xfeDoCommand (openInbox)"
;;
-*)
exec ./$MOZILLA_EXEC "$@"
;;
*)
REMOTE_COMMAND="openURL($@, $LOCATION)"
;;
esac
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0

View file

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 2
PORTREVISION?= 3
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \

View file

@ -6,13 +6,18 @@ LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
case $1 in
-mail)
REMOTE_COMMAND="xfeDoCommand (openInbox)"
;;
-*)
exec ./$MOZILLA_EXEC "$@"
;;
*)
REMOTE_COMMAND="openURL($@, $LOCATION)"
;;
esac
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0

View file

@ -7,7 +7,7 @@
PORTNAME?= mozilla
PORTVERSION= 1.2b
PORTREVISION?= 2
PORTREVISION?= 3
PORTEPOCH?= 1
CATEGORIES?= www
MASTER_SITES= ${MASTER_SITE_MOZILLA} \

View file

@ -6,13 +6,18 @@ LOCATION='new-tab'
cd $MOZILLA_DIR || exit 1
# catch calls for mozilla mail
if [ "$1" = "-mail" ]; then
REMOTE_COMMAND="xfeDoCommand (openInbox)"
else
REMOTE_COMMAND="openURL($@, $LOCATION)"
fi
case $1 in
-mail)
REMOTE_COMMAND="xfeDoCommand (openInbox)"
;;
-*)
exec ./$MOZILLA_EXEC "$@"
;;
*)
REMOTE_COMMAND="openURL($@, $LOCATION)"
;;
esac
# process found
./$MOZILLA_EXEC -remote "ping()" &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND" && exit 0