]> git.street.me.uk Git - andy/viking.git/commitdiff
cleanup: Remove unused and out of date 'viking-remote' script and related files.
authorRob Norris <rw_norris@hotmail.com>
Sat, 4 Feb 2012 10:51:18 +0000 (10:51 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sat, 4 Feb 2012 10:55:17 +0000 (10:55 +0000)
Makefile.am
VIKING-REMOTE.gconf [deleted file]
doc/Makefile.am
doc/viking-remote.xml [deleted file]
doc/viking.xml
viking-remote [deleted file]

index d08f602759056f594f3221d77bbf0f9e6c7076a1..ef31dde69b9bd0c10ed3e5169dc6c26e994f73ba 100644 (file)
@@ -9,12 +9,9 @@ full:
        ./autogen.sh
        make
 
-bin_SCRIPTS = viking-remote
-
 EXTRA_DIST = \
             gnome-doc-utils.make \
                 ChangeLog.0 \
-            viking-remote \
             viking.spec \
             $(INTLTOOL)
 
diff --git a/VIKING-REMOTE.gconf b/VIKING-REMOTE.gconf
deleted file mode 100644 (file)
index 6a886bd..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-gconftool-2  -s -t bool /desktop/gnome/url-handlers/geo/enabled "true"
-gconftool-2  -s -t string /desktop/gnome/url-handlers/geo/command "viking-remote \"%s\""
index efd2fc01f967dfe34b481c382af7cf0489d5c14c..65d017ecf379039793064bdb6b8081775f148826 100644 (file)
@@ -1,7 +1,7 @@
 SUBDIRS = examples
 
 EXTRA_DIST = GETTING-STARTED GPSMAPPER \
-  viking.xml viking-remote.xml
+  viking.xml
 
 CLEANFILES=
 
@@ -9,7 +9,7 @@ CLEANFILES=
 # TODO conditional processing
 # (availability of docbook stylesheet and xsltproc)
 if GEN_MANPAGES
-MANPAGES=viking.1 viking-remote.1
+MANPAGES=viking.1
 man_MANS = $(MANPAGES)
 CLEANFILES+=$(MANPAGES)
 endif
diff --git a/doc/viking-remote.xml b/doc/viking-remote.xml
deleted file mode 100644 (file)
index 22ecfa1..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1'?>
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-
-<!--
-
-Process this file with an XSLT processor: `xsltproc \
--''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
-manpages/docbook.xsl manpage.dbk'.  A manual page
-<package>.<section> will be generated.  You may view the
-manual page with: nroff -man <package>.<section> | less'.  A
-typical entry in a Makefile or Makefile.am is:
-
-DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
-manpages/docbook.xsl
-XP=xsltproc -''-nonet
-
-manpage.1: manpage.dbk
-        $(XP) $(DB2MAN) $<
-    
-The xsltproc binary is found in the xsltproc package.  The
-XSL files are in docbook-xsl.  Please remember that if you
-create the nroff version in one of the debian/rules file
-targets (such as build), you will need to include xsltproc
-and docbook-xsl in your Build-Depends control field.
-
--->
-
-  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
-  <!ENTITY dhfirstname "<firstname>Ralf</firstname>">
-  <!ENTITY dhsurname   "<surname>Meyer</surname>">
-  <!-- Please adjust the date whenever revising the manpage. -->
-  <!ENTITY dhdate      "<date>2007-05-24</date>">
-  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
-       allowed: see man(7), man(1). -->
-  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
-  <!ENTITY dhemail     "<email>ranfyy@gmail.com</email>">
-  <!ENTITY dhusername  "Ralf Meyer">
-  <!ENTITY dhucpackage "<refentrytitle>VIKING</refentrytitle>">
-  <!ENTITY dhpackage   "viking-remote">
-
-  <!ENTITY debian      "<productname>Debian</productname>">
-  <!ENTITY gnu         "<acronym>GNU</acronym>">
-  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
-]>
-
-<refentry>
-  <refentryinfo>
-    <address>
-      &dhemail;
-    </address>
-    <copyright>
-      <year>2007</year>
-      <holder>&dhusername;</holder>
-    </copyright>
-    &dhdate;
-  </refentryinfo>
-  <refmeta>
-    &dhucpackage;
-
-    &dhsection;
-  </refmeta>
-  <refnamediv>
-    <refname>&dhpackage;</refname>
-
-    <refpurpose>program to manage GPS data</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <cmdsynopsis>
-      <command>&dhpackage;</command>
-    </cmdsynopsis>
-  </refsynopsisdiv>
-  <refsect1>
-    <title>DESCRIPTION</title>
-
-    <para>
-  Viking is a free/open source program to manage GPS data. You can 
-  import and plot tracks and waypoints, show OpenStreetMap (OSM) maps and/or 
-  Terraserver maps under it, add coordinate lines, make new tracks 
-  and waypoints, hide different things, etc. It is written in C 
-  with the GTK+ 2 toolkit, available for Linux, other POSIX 
-  operating systems, and Windows, and is licensed under the GNU GPL. 
-    </para>
-    <para>  
-  Homepage:
-    http://viking.sf.net
-    </para>
-
-    <para>This manual page was written for the &debian; distribution
-      because the original program does not have a manual page.
-    </para>
-
-    <para><command>&dhpackage;</command> is a program to manage GPS data</para>
-
-  </refsect1>
-  <refsect1>
-    <title>OPTIONS</title>
-
-    <para>Usage: viking-remote uri
-    </para>
-
-  </refsect1>
-  <refsect1>
-    <title>SEE ALSO</title>
-
-    <para>viking (1).</para>
-  </refsect1>
-  <refsect1>
-    <title>AUTHOR</title>
-
-    <para>This manual page was written by &dhusername; &dhemail; for
-      the &debian; system (but may be used by others).  Permission is
-      granted to copy, distribute and/or modify this document under
-      the terms of the &gnu; General Public License, Version 2 any 
-         later version published by the Free Software Foundation.
-    </para>
-       <para>
-         On Debian systems, the complete text of the GNU General Public
-         License can be found in /usr/share/common-licenses/GPL.
-       </para>
-
-  </refsect1>
-</refentry>
-
index 51389284a85944d1a4a9a2a4346343f0a4936859..94051b83faa6aeb47e68215c7d11297c66874497 100644 (file)
@@ -349,11 +349,6 @@ and docbook-xsl in your Build-Depends control field.
     </variablelist>
 
   </refsect1>
-  <refsect1>
-    <title>SEE ALSO</title>
-
-    <para>viking-remote (1).</para>
-  </refsect1>
   <refsect1>
     <title>AUTHOR</title>
 
diff --git a/viking-remote b/viking-remote
deleted file mode 100755 (executable)
index 568357f..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-#!/usr/bin/perl
-
-#
-# geo://wpname:cmnt@34.15,-118.15/topo=/somedir,aerial=/someotherdir
-#
-
-die "Usage: viking-remote uri\n" if ( $#ARGV < 0 );
-
-if ( $ARGV[0] eq "debug" ) {
-  $DEBUG = 1;
-  shift @ARGV;
-} else {
-  $DEBUG = 0;
-}
-
-($ARGV[0] =~ m<(geo:)?/*([^/]*)(/(.*))?>) or die "Bad URI";
-$loc = $2;
-$extras = $4;
-
-if ( $loc =~ /^(GC[0-9A-Z]+)$/ ) {
- $gc = $loc;
- $loc=`gcfetchtxt http://www.geocaching.com/seek/cache_details.aspx?wp=$loc|head -2|tail +2`;
-}
-
-# have a lot of fun...
-($loc =~ /^(([^:@]*)(:([^:@]*))?@)?N?(S?)\s*((([0-9'"`°o\-\.])|(° ))*)[, ]\s*E?(W?)\s*(([0-9'"`o\-\.]|(° ))*)(:([0-9\-\.]*))?$/)
-    or die "Bad URI";
-
-$wp = $2 ? $2 : ( $gc ? $gc : "waypoint" );
-$cmt = $4; $lat = $6; $lon = $11; $alt = $15;
-
-$latfact = ($5 eq "S") ? -1 : 1;
-$lonfact = ($10 eq "W") ? -1 : 1;
-
-if ( $lat =~ /^(-?)(\d*)[°'"`o] *([\d.]*)$/ ) {
-  $lat = ($2 + ($3/60)) * ($1 ? -1 : 1);
-}
-if ( $lon =~ /^(-?)(\d*)[°'"`o] *([\d.]*)$/ ) {
-  $lon = ($2 + ($3/60)) * ($1 ? -1 : 1);
- }
-
-$lat *= $latfact;
-$lon *= $lonfact;
-
-if ( $extras =~ /^(auto)?street/ ) {
-  $mode = "latlon";
-  $zoom = 4.205;
-} else {
-  $mode = "utm";
-  $zoom = 4.0;
-}
-
-if ( $DEBUG ) {
-  open(PIPE, "|cat");
-} else {
-  open(PIPE, "|viking -- -");
-}
-
-print PIPE <<ENDDATA;
-#VIKING GPS Data file http://gpsmaps.org/viking/
-xmpp=$zoom;
-ympp=$zoom;
-lat=$lat
-lon=$lon
-mode=$mode
-ENDDATA
-
-@maps = split(',', $extras);
-foreach $map (@maps) {
-  $maptype = -1;
-  $mapname = $map;
-  $mapdir = "";
-  $auto = "f";
-  if ( $map =~ /^auto/ ) {
-    $auto = "t";
-    $map = substr($map, 4, 999);
-  }
-  if ( $map =~ /^street/i ) {
-    $maptype = 9;
-  } elsif ( $map =~ /^expedia/i ) {
-    $maptype = 5;
-  } elsif ( $map =~ /^urban/ || $map =~ /^color/ ) {
-    $maptype = 4;
-  } elsif ( $map =~ /^topo/ || $map =~ /^terraserver/ ) {
-    $maptype = 2;
-  } elsif ( $map =~ /^ortho/ || $map =~ /^aerial/ ) {
-    $maptype = 1;
-  }
-  if ( $maptype != -1 ) {
-    @mapanddir = split('=', $map);
-    if ( $#mapanddir > 0 ) {
-      $mapname = $mapanddir[0];
-      $mapdir = $mapanddir[1];
-    }
-    print PIPE <<ENDDATA;
-
-~Layer Map
-name=$mapname
-mode=$maptype
-directory=$mapdir
-autodownload=$auto
-~EndLayer
-ENDDATA
-  }
-}
-
-print PIPE <<ENDDATA;
-
-~Layer TrackWaypoint
-name=$wp
-tracks_visible=t
-waypoints_visible=t
-~LayerData
-type="waypoint" latitude="$lat" longitude="$lon" name="$wp" comment="$cmt" altitude="$alt"
-~EndLayerData
-~EndLayer
-ENDDATA
-
-
-close(PIPE);