From 80bb0095486743f38e930be5012dac2eb1e3d5f6 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Mon, 26 Sep 2011 23:23:59 +0200 Subject: [PATCH] Remove gsuggest As the required Perl module hasn't been updated for some time, this script was broken anyway. --- debian/control | 2 +- debian/overrides | 1 - debian/rules | 5 ++--- manpages/gsuggest.1 | 25 ------------------------- usr_bin/gsuggest.pl | 27 --------------------------- 5 files changed, 3 insertions(+), 57 deletions(-) delete mode 100644 manpages/gsuggest.1 delete mode 100755 usr_bin/gsuggest.pl diff --git a/debian/control b/debian/control index 0ec091a..1fc273a 100644 --- a/debian/control +++ b/debian/control @@ -14,7 +14,7 @@ Bugs: mailto:bugs@grml.org Package: grml-scripts Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, less, dialog, perl, zsh, dash, links | w3m | links2, screen, grml-network, grml-etc-core, libterm-readkey-perl, lockfile-progs, grml-scripts-core -Suggests: ruby, python, grml-x, ipcalc, hwinfo, antiword, grml-etc, grml-rebuildfstab, grml-files, grml-hwinfo, pptp-linux, flite, wmii, mutt, slrn, grml-docs, grml-autoconfig, dirvish, sudo, idesk, xlockmore, python-dbus, notification-daemon, grml-quickconfig, libwebservice-google-suggest-perl, lzop +Suggests: ruby, python, grml-x, ipcalc, hwinfo, antiword, grml-etc, grml-rebuildfstab, grml-files, grml-hwinfo, pptp-linux, flite, wmii, mutt, slrn, grml-docs, grml-autoconfig, dirvish, sudo, idesk, xlockmore, python-dbus, notification-daemon, grml-quickconfig, lzop Breaks: grml-autoconfig (<< 0.9.19) Description: Scripts for the Grml system for an easier life Some scripts which should make life easier. diff --git a/debian/overrides b/debian/overrides index 65ed7b5..9226fc7 100644 --- a/debian/overrides +++ b/debian/overrides @@ -1,5 +1,4 @@ grml-scripts: script-with-language-extension usr/bin/bincompare.pl -grml-scripts: script-with-language-extension usr/bin/gsuggest.pl grml-scripts: script-with-language-extension usr/bin/hgrep.sh grml-scripts: script-with-language-extension usr/bin/irclog2html-2.1.pl grml-scripts: script-with-language-extension usr/bin/notifyd.py diff --git a/debian/rules b/debian/rules index aa076ba..21d0240 100755 --- a/debian/rules +++ b/debian/rules @@ -59,7 +59,7 @@ binary-arch: build install manpages/reread_partition_table.8 manpages/random-hostname.1 \ manpages/grml-setkeyboard.8 manpages/grml-setlang.8 manpages/getsf.1 \ manpages/grml-iptstate.8 manpages/qma.1 manpages/grml-swapon.8 \ - manpages/grml2ram.8 manpages/gsuggest.1 manpages/dirvish-setup.8 \ + manpages/grml2ram.8 manpages/dirvish-setup.8 \ manpages/iso-term.1 manpages/alignmargins.8 manpages/get_3ware.1 \ manpages/grml-init-multitail.1 manpages/grml-setservices.8 # cp --no-dereference man/*.1.gz debian/grml-scripts/usr/share/man/man1/ @@ -139,8 +139,7 @@ binary-arch: build install /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/xsay.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/XF86AudioLowerVolume.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/XF86AudioMute.1.gz \ - /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/XF86AudioRaiseVolume.1.gz \ - /usr/share/man/man1/gsuggest.1.gz /usr/share/man/man1/gsuggest.pl.1.gz + /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/XF86AudioRaiseVolume.1.gz dh_strip dh_compress mkdir -p $(CURDIR)/debian/grml-scripts/usr/share/lintian/overrides/ diff --git a/manpages/gsuggest.1 b/manpages/gsuggest.1 deleted file mode 100644 index b0e8679..0000000 --- a/manpages/gsuggest.1 +++ /dev/null @@ -1,25 +0,0 @@ -.TH GSUGGEST.PL 1 -.SH NAME -gsuggest.pl \- google suggest on the commandline -.SH SYNOPSIS -.B gsuggest.pl -.RI keyword " [ another-keyword ]" -.SH DESCRIPTION -This manual page documents briefly the -.B gsuggest.pl -command. -.PP -\fBgsuggest.pl\fP is a program that asks google for keyword suggestions -for the given keyword[s]. -.SH USAGE EXAMPLE -.TP -.B gsuggest.pl grml -This will ask google for keyword suggestions based on the keyword 'grml' -and will return the results to standard out (stdout). -.SH OPTIONS -gsuggest.pl does not support any options. -.SH AUTHOR -gsuggest.pl was written by Michael Prokop . -.PP -This manual page was written by Michael Prokop -for the grml project (but may be used by others). diff --git a/usr_bin/gsuggest.pl b/usr_bin/gsuggest.pl deleted file mode 100755 index 125fd40..0000000 --- a/usr_bin/gsuggest.pl +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/perl -# Filename: gsuggest.pl -# Purpose: google suggest - ask google for keyword suggestions -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -use strict; -use warnings; -use WebService::Google::Suggest; - -unless (@ARGV) { - print "usage: gsuggest \n"; - exit(1); -} - -my $suggest = WebService::Google::Suggest->new(); - -while (@ARGV) { - my @suggestions = $suggest->complete(shift); - for my $suggestion (@suggestions) { - print "$suggestion->{query}: $suggestion->{results} results\n"; - } -} - -## END OF FILE ################################################################# -- 2.1.4