debian/0000775000000000000000000000000012035532107007166 5ustar debian/patches/0000755000000000000000000000000012035532107010613 5ustar debian/patches/debian-changes0000644000000000000000000000265612035532107013377 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . buthead (1.1-3) unstable; urgency=low . * add sources url to debian/copyright (closes: #690025) Author: Barak A. Pearlmutter Bug-Debian: http://bugs.debian.org/690025 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- buthead-1.1.orig/buthead.c +++ buthead-1.1/buthead.c @@ -40,7 +40,15 @@ int main(int argc, char **argv) } while ((c = getchar()) != EOF) - putchar(c); + if (putchar(c) == EOF) { + perror("buthead error"); + exit(1); + } + + if (fflush(stdout) == EOF) { + perror("buthead error"); + exit(1); + } return 0; } debian/patches/series0000644000000000000000000000001712035532107012026 0ustar debian-changes debian/buthead.prerm0000775000000000000000000000023112035531633011653 0ustar #! /bin/sh set -e case "$1" in remove|deconfigure) # Alternatives update-alternatives --quiet --remove bh /usr/bin/buthead ;; esac #DEBHELPER# debian/source/0000775000000000000000000000000012035532045010467 5ustar debian/source/format0000664000000000000000000000001412035531633011677 0ustar 3.0 (quilt) debian/control0000664000000000000000000000072012035531633010573 0ustar Source: buthead Section: text Priority: extra Maintainer: Barak A. Pearlmutter Standards-Version: 3.9.3 Build-depends: debhelper (>= 9) Vcs-Git: git://git.debian.org/git/collab-maint/buthead.git Vcs-Browser: http://git.debian.org/?p=collab-maint/buthead.git Package: buthead Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: copy all but the first few lines Program to copy all but the first N lines of stdin to stdout. debian/changelog0000664000000000000000000000713612035531633011052 0ustar buthead (1.1-3) unstable; urgency=low * add sources url to debian/copyright (closes: #690025) -- Barak A. Pearlmutter Thu, 11 Oct 2012 12:54:10 +0100 buthead (1.1-2) unstable; urgency=low * bump standards version (debian/control) * dh 9 -- Barak A. Pearlmutter Wed, 11 Apr 2012 22:28:03 +0100 buthead (1.1-1) unstable; urgency=low * bump standards version (debian/control) * dh 8 * dh --parallel * debian patches accepted upstream (closes: #643062) -- Barak A. Pearlmutter Mon, 26 Sep 2011 22:32:36 +0100 buthead (1.0-16) unstable; urgency=low * bump debian standards * switch to dpkg-source 3.0 (quilt) format -- Barak A. Pearlmutter Thu, 25 Mar 2010 15:40:27 +0000 buthead (1.0-15) unstable; urgency=low * distinguish unicode hyphen from ascii dash in man page * cease ignoring errors in installation scripts -- Barak A. Pearlmutter Fri, 25 Sep 2009 22:24:59 -0400 buthead (1.0-14) unstable; urgency=low * Use update-alternatives for bh alias for buthead -- Barak A. Pearlmutter Sat, 30 May 2009 22:18:27 +0100 buthead (1.0-13) unstable; urgency=low * Note in man page that sed 1,5d can substitute for buthead 5 * Create alias bh for buthead, to beat "buthead 5" = "sed 1,5d", see http://upsilon.cc/~zack/blog/posts/2009/05/command_of_the_day:_buthead/ -- Barak A. Pearlmutter Fri, 29 May 2009 08:08:42 +0100 buthead (1.0-12) unstable; urgency=low * Use flashy new dh override_xxx mechanism in debian/rules -- Barak A. Pearlmutter Fri, 17 Apr 2009 11:36:46 +0100 buthead (1.0-11) unstable; urgency=low * Clear lintian misc:Depends warning * rev deb std -- Barak A. Pearlmutter Thu, 19 Mar 2009 23:11:38 +0000 buthead (1.0-10) unstable; urgency=low * rev deb std, dh 7 -- Barak A. Pearlmutter Wed, 27 Aug 2008 12:54:39 +0200 buthead (1.0-9) unstable; urgency=low * rev deb standard, rephrase description -- Barak A. Pearlmutter Sun, 23 Dec 2007 17:26:18 +0100 buthead (1.0-8) unstable; urgency=low * add dh_strip to debian/rules (closes: #436608) -- Barak A. Pearlmutter Fri, 10 Aug 2007 09:33:27 +0100 buthead (1.0-7) unstable; urgency=low * shorten and obfuscate man page * policy rev -- Barak A. Pearlmutter Thu, 3 Aug 2006 01:16:18 +0100 buthead (1.0-6) unstable; urgency=low * posix updates for tail xref * lengthen description (closes: #117151, #209440) -- Barak A. Pearlmutter Mon, 14 Jun 2004 14:35:34 +0100 buthead (1.0-5) unstable; urgency=low * multiline description * update maintainer address -- Barak A. Pearlmutter Tue, 16 Sep 2003 16:19:02 +0100 buthead (1.0-4) unstable; urgency=low * lengthen and clarify description (closes: #209440) * rev description version -- Barak A. Pearlmutter Fri, 12 Sep 2003 17:33:12 +0200 buthead (1.0-3) unstable; urgency=low * detect command line arg greater than LONG_MAX * cosmetic changes to shorten source code -- Barak Pearlmutter Sat, 9 Mar 2002 00:45:32 -0700 buthead (1.0-2) unstable; urgency=low * add build dependency on debhelper (closes: #105643) * minor mods: * allow long skip count * robust parsing of count * more informative and evocative error messages -- Barak Pearlmutter Wed, 18 Jul 2001 16:09:25 -0600 buthead (1.0-1) unstable; urgency=low * Initial Release. -- Barak Pearlmutter Mon, 25 Jun 2001 18:49:49 -0600 debian/copyright0000664000000000000000000000050412035531633011123 0ustar This package was debianized by Barak Pearlmutter on Mon, 25 Jun 2001. Upstream Author: ibid, id est, Copyright 2002 Barak A. Pearlmutter Copyright: GNU GPL v2 or later, see /usr/share/common-licenses/GPL-2 Sources at git://git.debian.org/git/collab-maint/buthead.git git://github.com/barak/buthead.git debian/compat0000664000000000000000000000000212035531633010367 0ustar 9 debian/README.Debian0000664000000000000000000000023412035531633011231 0ustar buthead for Debian ---------------------- Packaged in honor of Craig Sanders. -- Barak Pearlmutter , Mon, 25 Jun 2001 18:49:49 -0600 debian/buthead.manpages0000664000000000000000000000001212035531633012313 0ustar buthead.1 debian/buthead.postinst0000775000000000000000000000047212035531633012420 0ustar #! /bin/sh set -e case "$1" in configure) # Alternatives update-alternatives --quiet \ --install /usr/bin/bh bh /usr/bin/buthead 30 \ --slave \ /usr/share/man/man1/bh.1.gz bh.1.gz \ /usr/share/man/man1/buthead.1.gz ;; esac #DEBHELPER# debian/rules0000775000000000000000000000014312035531633010247 0ustar #!/usr/bin/make -f %: dh $@ --parallel override_dh_auto_install: dh_auto_install -- prefix=/usr