Author: frankie
Date: 2007-03-30 13:57:09 +0000 (Fri, 30 Mar 2007)
New Revision: 678

Added:
   packages/grass/trunk/debian/patches/www-browser.dpatch
Modified:
   packages/grass/trunk/debian/changelog
   packages/grass/trunk/debian/patches/00list
Log:
New patch for default browser


Modified: packages/grass/trunk/debian/changelog
===================================================================
--- packages/grass/trunk/debian/changelog       2007-03-29 18:51:08 UTC (rev 
677)
+++ packages/grass/trunk/debian/changelog       2007-03-30 13:57:09 UTC (rev 
678)
@@ -2,8 +2,9 @@
 
   * Fixed watch and grass.links files for grass62
   * Install grass.pc file for pkg-config
+  * New patch: www-browser -- Use www-browser as default browser
 
- -- Francesco Paolo Lovergine <[EMAIL PROTECTED]>  Thu, 29 Mar 2007 20:48:53 
+0200
+ -- Francesco Paolo Lovergine <[EMAIL PROTECTED]>  Fri, 30 Mar 2007 15:56:08 
+0200
 
 grass (6.2.1-1) experimental; urgency=low
 

Modified: packages/grass/trunk/debian/patches/00list
===================================================================
--- packages/grass/trunk/debian/patches/00list  2007-03-29 18:51:08 UTC (rev 
677)
+++ packages/grass/trunk/debian/patches/00list  2007-03-30 13:57:09 UTC (rev 
678)
@@ -1 +1,2 @@
 htmlgen-fakeroot
+www-browser

Added: packages/grass/trunk/debian/patches/www-browser.dpatch
===================================================================
--- packages/grass/trunk/debian/patches/www-browser.dpatch      2007-03-29 
18:51:08 UTC (rev 677)
+++ packages/grass/trunk/debian/patches/www-browser.dpatch      2007-03-30 
13:57:09 UTC (rev 678)
@@ -0,0 +1,65 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## www-browser.dpatch by Francesco Paolo Lovergine <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use www-browser as HTML browser, the Debian way
+
[EMAIL PROTECTED]@
+diff -urNad grass-6.2.1~/lib/init/init.sh grass-6.2.1/lib/init/init.sh
+--- grass-6.2.1~/lib/init/init.sh      2006-10-19 13:20:41.000000000 +0200
++++ grass-6.2.1/lib/init/init.sh       2007-03-30 15:54:31.000000000 +0200
+@@ -228,53 +228,7 @@
+ CYGWIN=`uname | grep CYGWIN`
+ 
+ if [ ! "$GRASS_HTML_BROWSER" ] ; then
+-    for i in `echo "$PATH" | sed 's/^:/.:/
+-                                s/::/:.:/g
+-                                s/:$/:./
+-                                s/:/ /g'`
+-    do
+-        if [ -f "$i/htmlview" ] ; then  
+-            GRASS_HTML_BROWSER=htmlview  
+-            break  
+-        elif [ -f "$i/konqueror" ] ; then  
+-            GRASS_HTML_BROWSER=konqueror
+-            break
+-        elif [ -f "$i/mozilla" ] ; then
+-            GRASS_HTML_BROWSER=mozilla
+-            break
+-        elif [ -f "$i/mozilla-firefox" ] ; then
+-            GRASS_HTML_BROWSER=mozilla-firefox
+-            break
+-        elif [ -f "$i/opera" ] ; then
+-            GRASS_HTML_BROWSER=opera
+-            break
+-        elif [ -f "$i/netscape" ] ; then
+-            GRASS_HTML_BROWSER=netscape
+-            break
+-        elif [ "$HOSTTYPE" = "macintosh" -o "$HOSTTYPE" = "powermac" -o 
"$HOSTTYPE" = "powerpc" ] ; then
+-            GRASS_HTML_BROWSER=open
+-            break
+-        elif [ "$HOSTTYPE" = "arm" ] ; then
+-            GRASS_HTML_BROWSER=dillo
+-            break
+-        elif [ "$HOSTTYPE" = "arm" ] ; then
+-            GRASS_HTML_BROWSER=dillo2
+-            break
+-      elif [ "$CYGWIN" ] ; then
+-          iexplore="$SYSTEMDRIVE/Program Files/Internet Explorer/iexplore.exe"
+-          if [ -f "$iexplore" ] ; then
+-              GRASS_HTML_BROWSER=$iexplore
+-          else
+-              GRASS_HTML_BROWSER="iexplore"
+-          fi
+-          break
+-        fi
+-    done
+-fi
+-if [ ! "$GRASS_HTML_BROWSER" ] ; then
+-    echo "Searching for web browser, but neither konqueror, nor mozilla, 
opera, netscape found."
+-    # so we set konqueror, though, to make lib/gis/parser.c happy:
+-    GRASS_HTML_BROWSER=konqueror
++      GRASS_HTML_BROWSER=www-browser
+ fi
+ export GRASS_HTML_BROWSER
+ 


Property changes on: packages/grass/trunk/debian/patches/www-browser.dpatch
___________________________________________________________________
Name: svn:executable
   + *


_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to