This commit is contained in:
parent
613fb2a0d4
commit
6ae272bfb3
27
browser
27
browser
@ -3,21 +3,23 @@
|
|||||||
# browser script
|
# browser script
|
||||||
#
|
#
|
||||||
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
|
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
|
||||||
# Copyright (c) 2004 Werner Fink
|
# Copyright (c) 2007 SuSE LINUX Products GmbH, Nuernberg, Germany
|
||||||
|
# Copyright (c) 2004, 2007 Werner Fink
|
||||||
#
|
#
|
||||||
# Author: Werner Fink
|
# Author: Werner Fink
|
||||||
|
|
||||||
prog=""
|
prog=""
|
||||||
for p in \
|
for p in \
|
||||||
|
firefox \
|
||||||
Mozilla \
|
Mozilla \
|
||||||
mozilla \
|
mozilla \
|
||||||
|
konqueror \
|
||||||
|
opera \
|
||||||
|
amaya \
|
||||||
Netscape \
|
Netscape \
|
||||||
netscape \
|
netscape \
|
||||||
Mosaic \
|
Mosaic \
|
||||||
mosaic \
|
mosaic
|
||||||
opera \
|
|
||||||
konqueror \
|
|
||||||
amaya
|
|
||||||
do
|
do
|
||||||
prog=$(type -p $p) && break
|
prog=$(type -p $p) && break
|
||||||
done
|
done
|
||||||
@ -60,8 +62,8 @@ for opt in $@ ; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
case "$prog" in
|
case "${prog##*/}" in
|
||||||
*/[nN]etscape|*/[Mm]ozilla)
|
[nN]etscape|[Mm]ozilla)
|
||||||
ret=0
|
ret=0
|
||||||
if test -n "$url" ; then
|
if test -n "$url" ; then
|
||||||
$prog -noraise -remote "xfeDoCommand(openBrowser)" &> /dev/null && \
|
$prog -noraise -remote "xfeDoCommand(openBrowser)" &> /dev/null && \
|
||||||
@ -72,6 +74,17 @@ case "$prog" in
|
|||||||
ret=$?
|
ret=$?
|
||||||
fi
|
fi
|
||||||
test $ret -eq 0 && exit 0
|
test $ret -eq 0 && exit 0
|
||||||
|
;;
|
||||||
|
firefox)
|
||||||
|
ret=0
|
||||||
|
if test -n "$url" ; then
|
||||||
|
$prog -remote "$open($url,new-window)"
|
||||||
|
ret=$?
|
||||||
|
elif test -n "$cmd" ; then
|
||||||
|
echo "${prog##*/} does not support $cmd"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
test $ret -eq 0 && exit 0
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# You are at your own
|
# You are at your own
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 23 12:30:59 CET 2007 - werner@suse.de
|
||||||
|
|
||||||
|
- Make browser script know about firefox
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 7 16:44:45 CEST 2007 - werner@suse.de
|
Mon May 7 16:44:45 CEST 2007 - werner@suse.de
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ License: Any permissive
|
|||||||
Group: Productivity/Graphics/Vector Editors
|
Group: Productivity/Graphics/Vector Editors
|
||||||
Provides: xfig.3.2.3d
|
Provides: xfig.3.2.3d
|
||||||
Requires: transfig netpbm ghostscript-fonts-std
|
Requires: transfig netpbm ghostscript-fonts-std
|
||||||
Autoreqprov: on
|
AutoReqProv: on
|
||||||
Version: 3.2.5
|
Version: 3.2.5
|
||||||
Release: 1
|
Release: 42
|
||||||
Summary: Facility for Interactive Generation of Figures under the X Window System
|
Summary: Facility for Interactive Generation of Figures under the X Window System
|
||||||
Url: http://www.xfig.org/
|
Url: http://www.xfig.org/
|
||||||
Source: xfig.%{version}.tar.bz2
|
Source: xfig.%{version}.tar.bz2
|
||||||
@ -37,7 +37,6 @@ Patch7: xfig.%{version}-fixes.dif
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
||||||
%if "%_exec_prefix" == "/usr/X11R6"
|
%if "%_exec_prefix" == "/usr/X11R6"
|
||||||
|
|
||||||
%global _mandir %{_exec_prefix}/man
|
%global _mandir %{_exec_prefix}/man
|
||||||
%define _x11data %{_exec_prefix}/lib/X11
|
%define _x11data %{_exec_prefix}/lib/X11
|
||||||
%define _data $(LIBDIR)
|
%define _data $(LIBDIR)
|
||||||
@ -135,6 +134,8 @@ find %{buildroot}/%{_docdir}/%{name} -name '*.orig' | xargs -r rm -f
|
|||||||
%doc %{_mandir}/man1/xfig.1x.gz
|
%doc %{_mandir}/man1/xfig.1x.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 23 2007 - werner@suse.de
|
||||||
|
- Make browser script know about firefox
|
||||||
* Fri Jun 01 2007 - dmueller@suse.de
|
* Fri Jun 01 2007 - dmueller@suse.de
|
||||||
- fix buildrequires
|
- fix buildrequires
|
||||||
* Mon May 07 2007 - werner@suse.de
|
* Mon May 07 2007 - werner@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user