--- wikipedia2text-0.05.orig/wiki +++ wikipedia2text-0.05/wiki @@ -317,3 +317,4 @@ else getInfo fi +# vim: ft=sh --- wikipedia2text-0.05.orig/debian/README.Debian +++ wikipedia2text-0.05/debian/README.Debian @@ -0,0 +1,8 @@ +wikipedia2text for Debian +------------------------- + +The original script was named just wiki. This name could lead to +confusion with wikis installed on a Debian system, so I renamed it to +wikipedia2text and added a symlink from wp2t. + + -- Axel Beckert , Tue, 24 Oct 2006 18:04:32 +0200 --- wikipedia2text-0.05.orig/debian/changelog +++ wikipedia2text-0.05/debian/changelog @@ -0,0 +1,20 @@ +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 --- wikipedia2text-0.05.orig/debian/compat +++ wikipedia2text-0.05/debian/compat @@ -0,0 +1 @@ +4 --- wikipedia2text-0.05.orig/debian/dirs +++ wikipedia2text-0.05/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- wikipedia2text-0.05.orig/debian/wikipedia2text.sgml +++ wikipedia2text-0.05/debian/wikipedia2text.sgml @@ -0,0 +1,461 @@ + 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 + Query + + + &dhcommand; + + + prog + lang + Query + + + &dhcommand; + + + + + &dhcommand; + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhcommand; command. + + &dhcommand; fetches and renders &wikipedia; articles using a + text-mode web-browser (currently recocgnises + elinks, links2, + links, lynx and + w3m and display the text of the article on + STDOUT respective on the command line. + + + + 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 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. + + + + + + + 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.05.orig/debian/control +++ wikipedia2text-0.05/debian/control @@ -0,0 +1,17 @@ +Source: wikipedia2text +Section: text +Priority: optional +Maintainer: Axel Beckert +Build-Depends: debhelper (>= 4.0.0), docbook-to-man +Standards-Version: 3.7.2 + +Package: wikipedia2text +Recommends: elinks | links2 | links | lynx-ssl | w3m, less | more +Depends: lynx | www-browser +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.05.orig/debian/copyright +++ wikipedia2text-0.05/debian/copyright @@ -0,0 +1,8 @@ +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 Holder: Christian Brabandt + +License: Public Domain --- wikipedia2text-0.05.orig/debian/rules +++ wikipedia2text-0.05/debian/rules @@ -0,0 +1,72 @@ +#!/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 + cp -pv wiki $(BIN) + 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) $(BIN).1 $(BIN).1.gz + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + 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