--- wikipedia2text-0.10.orig/debian/README.Debian +++ wikipedia2text-0.10/debian/README.Debian @@ -0,0 +1,9 @@ +wikipedia2text for Debian +------------------------- + +The script originally was named just wiki. I the meanwhile +wikipedia2text is also the official name. + +The Debian package also offers a symlink named wp2t as shortcut. + + -- Axel Beckert Mon, 26 May 2008 18:59:01 +0200 --- wikipedia2text-0.10.orig/debian/dirs +++ wikipedia2text-0.10/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- wikipedia2text-0.10.orig/debian/copyright +++ wikipedia2text-0.10/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Axel Beckert on +Sat, 27 Aug 2005 17:35:14 +0200. + +It was downloaded from http://www.256bit.org/~chrisbra/wiki + +Copyright (C) 2005-2008 Christian Brabandt + +License: BSD + +On Debian systems you can find a cpy of the BSD license at +/usr/share/common-licenses/BSD. --- wikipedia2text-0.10.orig/debian/wikipedia2text.sgml +++ wikipedia2text-0.10/debian/wikipedia2text.sgml @@ -0,0 +1,486 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + 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 + docbook-to-man in your Build-Depends control field. + + --> + + + Axel"> + Beckert"> + + August 27, 2005"> + + 1"> + <abe@deuxchevaux.org>"> + + WIKIPEDIA2TEXT"> + + &dhpackage;"> + + Debian"> + Wikipedia"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + displays &wikipedia; entries on the command line + + + + &dhcommand; + + + prog + patt + lang + base-url + Query + + + &dhcommand; + + + prog + lang + Query + + + &dhcommand; + + + + + &dhcommand; + + + + + &dhcommand; + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhcommand; command. + + &dhcommand; fetches and renders &wikipedia; articles using a + text-mode web-browser (currently recognises + elinks, links2, + links, lynx and + w3m) and display the text of the article on + STDOUT respectively in a pager. + + + + OPTIONS + + The program recognizes the following command line + options: + + + + prog + + Use program prog as + browser. + + + + + + + Do not use browser configured via configuration file + or environment. + + + + + patt, patt + + Colorize case-sensitive pattern + patt in output. + + + + + , + + Colorize output. + + + + + + + Show help and a summary of options. + + + + + patt + + Colorize case-insensitive pattern + patt in output. + + + + + lang + + use &wikipedia; in + language lang. See the + &wikipedia; Languages entry elsewhere in this + document. + + + + + + + Do not colorize output. + + + + + + + Open the &wikipedia; page in the browser. + + + + + + + Do not open the &wikipedia; page in the browser. + + + + + + + Use a pager (set by default). + + + + + + + Don't use a pager. + + + + + + + Display a random &wikipedia; article. + + + + + + + Display only the summary of the &wikipedia; article. + + + + + + + Display the full content of the &wikipedia; article + and not only the summary. + + + + + + + Just print the URL of the &wikipedia; page and exit. + + + + + + + Display the full content of the &wikipedia; article + and not only print the URL of the page. + + + + + + + Show version number. + + + + + base-url + + use base-url as base URL + for wikipedia (e.g. use a different wiki), querying + this URL will happen by appending the search + term. + + + + + + + ENVIRONMENT + + The following environment variables are recognized: + + + + ABROWSER + + Browser to use as default instead of to found or + configured web browser. + + + + + IGNCASE + + Default value for case-sensitivity of colorizing + the output. Can be set to "true" or "false". + + + + + LOCAL + + + + Default value for language in which &wikipedia; should be + used. See the &wikipedia; Languages entry elsewhere in + this document. + + + + + + OUTPUTURL + + Determines, if &dhcommand; should display only + the URL of the &wikipedia; article by default. Can + be set to "true" or "false". + + + + + PAGER + + Default value for pager to use. Can also be set + to "true", in which case, &dhcommand; tries to + figure out the appropriate pager, or "false", which + means not to use a pager at all. + + + + + SHORT + + Determines, if &dhcommand; should display only + the summary of the &wikipedia; article by default. Can + be set to "true" or "false". + + + + + USEBROWSER + + + Determines, if &dhcommand; should open the &wikipedia; page + via openurl in the globally set default + browser, i.e. Firefox or + Konqueror, by default. Can be set to + "true" or "false". + + + + + + + FILES + + + + $HOME/.wikipedia2textrc + + Will be sourced from &dhpackage on + startup. Should contain variable assignments. The same + variables as for the environment are recognised. + + + + + + + WIKIPEDIA LANGUAGES + + &dhcommand; currently supports the following + &wikipedia; languages: + + + +af + Cape Dutch (Afrikaans) +als + Alemannic +ca + Catalan +cs + Czech +da + Danish +de + German +en + English +eo + Esperanto +es + Spanish +fi + Finnish +fr + French +hu + Hungarian +ia + Interlingua +is + Islandic +it + Italian +la + Latin +lb + Luxembourgian +nds + Low German +nl + Dutch +nn, no + Norwegian (Nynorsk and Bokmål) +pl + Polish +pt + Portuguese +rm + Rhaeto-Romanic +ro + Romanian +simple + Simple English +sk + Slovak +sl + Slovenian +sv + Swedish +tr + Turkish + + + + + SEE ALSO + elinks(1), links(1), links2(1), lynx(1), w3m(1) + + + AUTHOR + + &dhcommand; was written by Christian Brabandt + <cb@256bit.org>. Patches also from &dhusername; + &dhemail;. + + 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 + (GPL), Version 2 any later version published + by the Free Software Foundation. + + On Debian systems, the complete text of the &gnu General + Public License can be found in + /usr/share/common-licenses/GPL. + + + HISTORY + + &dhpackage; was first released by Christian Brabandt on + in + his blog with as script named + wiki. Some users may find it useful to create + an alias with that name for speeding up the typing of a + &dhcommand; command if no other command of that name is + present. + + + + OTHER INFO + The current version of &dhcommand; should be available at + on Christian + Brabandt's website. + +
+ + --- wikipedia2text-0.10.orig/debian/control +++ wikipedia2text-0.10/debian/control @@ -0,0 +1,21 @@ +Source: wikipedia2text +Section: text +Priority: optional +Maintainer: Axel Beckert +Build-Depends: debhelper (>= 7.0.0), docbook-to-man +Standards-Version: 3.8.1 +Homepage: http://blog.256bit.org/archives/126-Wikipedia-in-der-Shell.html +Vcs-Browser: http://noone.org/hg/wikipedia2text/debian +Vcs-Hg: http://noone.org/hg/wikipedia2text/debian + +Package: wikipedia2text +Depends: lynx | www-browser, liburi-perl +Recommends: less | most +Suggests: elinks | links2 | links | lynx-ssl | w3m +Architecture: all +Description: displays Wikipedia articles on the command line + This script fetches Wikipedia articles (currently supports around 30 + Wikipedia languages) and displays them as plain text in a pager or + just sends the text to standard out. Alternatively it opens the + Wikipedia article in a (possibly GUI) web browser or just shows the + URL of the appropriate Wikipedia article. --- wikipedia2text-0.10.orig/debian/rules +++ wikipedia2text-0.10/debian/rules @@ -0,0 +1,71 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +BIN=wikipedia2text +TMP=debian/$(BIN) + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + docbook-to-man debian/$(BIN).sgml > $(BIN).1 + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf $(TMP) $(BIN).1 $(BIN).1.gz + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + install -m 0755 $(BIN) $(TMP)/usr/bin + install -m 0644 $(BIN).1 $(TMP)/usr/share/man/man1/ + dh_link usr/bin/$(BIN) usr/bin/wp2t + dh_link usr/share/man/man1/$(BIN).1 usr/share/man/man1/wp2t.1 + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + +deb: buildpackage +package: buildpackage +buildpackage: + debuild --linda --lintian -us -uc --- wikipedia2text-0.10.orig/debian/compat +++ wikipedia2text-0.10/debian/compat @@ -0,0 +1 @@ +7 --- wikipedia2text-0.10.orig/debian/changelog +++ wikipedia2text-0.10/debian/changelog @@ -0,0 +1,45 @@ +wikipedia2text (0.10-2) unstable; urgency=low + + * Add missing dependency on liburi-perl (Closes: #520874) + * Bumped Standards-Version to 3.8.1 (no changes necessary) + * Bumped debhelper compatibility to V7: + - debian/rules: Changed dh_clean -k to dh_prep + + -- Axel Beckert Mon, 23 Mar 2009 12:39:43 +0100 + +wikipedia2text (0.10-1) unstable; urgency=low + + * New upstream version (Closes: #413693) + * License change to BSD + * Upstream renamed script to wikipedia2text: appropriately changed + rules and README.Debian + * Adapted copyright file to the currently preferred format + * Bump standards version to 3.8.0 + * Added Vcs-* headers and Homepage header to control file + * Recommends most (Closes: #397911) + * Alternative text browsers now are only suggested, no more recommended. + * Fixed some typos in the man page and worked around broken docbook to + man converter (Closes: #437934) + + -- Axel Beckert Tue, 10 Jun 2008 00:35:43 +0200 + +wikipedia2text (0.05-2) unstable; urgency=low + + * Build-Depends: docbook-to-man (Closes: #397553) + + -- Axel Beckert Wed, 8 Nov 2006 10:51:19 +0100 + +wikipedia2text (0.05-1) unstable; urgency=low + + * New upstream version with patches helpful for debianisation. + * Support for links, links2 and w3m + * Support for 28 further Wikipedia languages + * Closes: #325417 (ITP) + + -- Axel Beckert Fri, 13 Oct 2006 02:20:38 +0200 + +wikipedia2text (0.04-1) unstable; urgency=low + + * Initial version for testing. + + -- Axel Beckert Sat, 27 Aug 2005 17:35:14 +0200