debian/0000755000000000000000000000000012013472330007161 5ustar debian/watch0000644000000000000000000000016512013472250010215 0ustar version=3 http://marcin.owsiany.pl/potool.en.html potool/potool-(\d[^[:space:]]*)\.(?:tar\.gz|tgz|tar\.bz2|tbz|tbz2) debian/source/0000755000000000000000000000000012013472250010462 5ustar debian/source/format0000644000000000000000000000001412013472250011670 0ustar 3.0 (quilt) debian/potool.postinst0000644000000000000000000000506612013472250012312 0ustar #!/bin/sh # Written by Charles Briscoe-Smith, March-April 1998. Public Domain. # Adapted for potool by Marcin Owsiany, August 2003 # Abort if any command returns an error value set -e # This script is called as the last step of the installation of the # package. All the package's files are in place, dpkg has already done # its automatic conffile handling, and all the packages we depend of # are already fully installed and configured. register_alternatives() { update-alternatives \ --install /usr/bin/poedit poedit /usr/bin/potooledit 80 \ --slave /usr/share/man/man1/poedit.1.gz poedit.1.gz \ /usr/share/man/man1/potooledit.1.gz \ --slave /usr/share/man/pl/man1/poedit.1.gz poedit.pl.1.gz \ /usr/share/man/pl/man1/potooledit.1.gz } case "$1" in configure) # Configure this package. If the package must prompt the user for # information, do it here. There are three sub-cases. register_alternatives if test "${2+set}" != set; then # We're being installed by an ancient dpkg which doesn't remember # which version was most recently configured, or even whether # there is a most recently configured version. : elif test -z "$2" -o "$2" = ""; then # The package has not ever been configured on this system, or was # purged since it was last configured. : else # Version $2 is the most recently configured version of this # package. : fi ;; abort-upgrade) # Back out of an attempt to upgrade this package FROM THIS VERSION # to version $2. Undo the effects of "prerm upgrade $2". register_alternatives ;; abort-remove) if test "$2" != in-favour; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 1 fi # Back out of an attempt to remove this package, which was due to # a conflict with package $3 (version $4). Undo the effects of # "prerm remove in-favour $3 $4". register_alternatives ;; abort-deconfigure) if test "$2" != in-favour -o "$5" != removing; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 1 fi # Back out of an attempt to deconfigure this package, which was # due to package $6 (version $7) which we depend on being removed # to make way for package $3 (version $4). Undo the effects of # "prerm deconfigure in-favour $3 $4 removing $6 $7". register_alternatives ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 1;; esac #DEBHELPER# exit 0 debian/potool.manpages0000644000000000000000000000015012013472250012207 0ustar change-po-charset.1 change-po-charset.*.1 poedit.1 poedit.*.1 postats.1 postats.*.1 potool.1 potool.*.1 debian/copyright0000644000000000000000000000145612013472250011123 0ustar This package was debianized by Marcin Owsiany on Wed, 13 Dec 2000 00:39:40 +0100. The program's current home page is http://marcin.owsiany.pl/potool-page Upstream Authors: Zbigniew Chyla Marcin Owsiany Copyright information: potool is a program aiding editing of po files Copyright (C) 1999-2000 Zbigniew Chyla Copyright (C) 2000-2012 Marcin Owsiany License information: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GNU General Public License is available as /usr/share/common-licenses/GPL-2 on Debian systems. debian/rules0000755000000000000000000000150412013472250010242 0ustar #!/usr/bin/make -f # Copyright 2012 Marcin Owsiany export DH_VERBOSE=1 export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ override_dh_auto_install: dh_auto_install -- DESTDIR=`pwd`/debian/potool BINDIR='$$(DESTDIR)/usr/bin' BININSTALL=install # filename conflict with the poedit package, handled via alternatives mv debian/potool/usr/bin/poedit debian/potool/usr/bin/potooledit # low quality, Polish-specific rm debian/potool/usr/bin/poupdate override_dh_installman: dh_installman # filename conflict with the poedit package, handled via alternatives rename 's,poedit[.]1,potooledit.1,' debian/potool/usr/share/man/*/man1/poedit.1 debian/potool/usr/share/man/man1/poedit.1 debian/compat0000644000000000000000000000000212013472250010360 0ustar 8 debian/potool.prerm0000644000000000000000000000357412013472250011556 0ustar #!/bin/sh # Written by Charles Briscoe-Smith, March 1998. Public Domain. # Adapted for potool by Marcin Owsiany, August 2003 # Abort if any command returns an error value set -e # This script is called as the first step in removing the package from # the system. This includes cases where the user explicitly asked for # the package to be removed, upgrade, automatic removal due to conflicts, # and deconfiguration due to temporary removal of a depended-on package. deregister_alternatives() { update-alternatives --remove poedit /usr/bin/potooledit } case "$1" in remove) # This package about to be removed. There are two sub-cases. deregister_alternatives if test "${2+set}" = set; then if test "$2" != in-favour; then echo "$0: undocumented call to \`prerm $*'" 1>&2 exit 1 fi # We are being removed because of a conflict with package $3 # (version $4), which is now being installed. : else # The package is being removed in its own right. : fi ;; deconfigure) if test "$2" != in-favour -o "$5" != removing; then echo "$0: undocumented call to \`prerm $*'" 1>&2 exit 1 fi # Package $6 (version $7) which we depend on is being removed due # to a conflict with package $3 (version $4), and this package is # being deconfigured until $6 can be reinstalled. deregister_alternatives ;; upgrade) # Prepare to upgrade FROM THIS VERSION of this package to version $2. deregister_alternatives ;; failed-upgrade) # Prepare to upgrade from version $2 of this package TO THIS VERSION. # This is only used if the old version's prerm couldn't handle it, # and returned non-zero. (Fix old prerm bugs here.) deregister_alternatives ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 1;; esac #DEBHELPER# exit 0 debian/control0000644000000000000000000000114612013472250010567 0ustar Source: potool Section: utils Priority: optional Maintainer: Marcin Owsiany Standards-Version: 3.9.3 Build-Depends: libglib2.0-dev, bison, flex, debhelper (>= 8) Package: potool Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Breaks: poedit (<< 1.0.3-2) Homepage: http://marcin.owsiany.pl/potool-page Description: program to aid manipulation of gettext po files This package contains the filter program 'potool', as well as a few helper scripts: poedit - helps editing of po files in your favourite editor postats - prints statistics of how much of a file is translated debian/changelog0000644000000000000000000001465712013472330011050 0ustar potool (0.15-1) unstable; urgency=low * New version - fixes poedit on files with obsolete entries -- Marcin Owsiany Fri, 17 Aug 2012 18:43:35 +0200 potool (0.14-1) unstable; urgency=low * New version - documents the fact that text gets reformatted. Closes: #602884 - adds support for "previous" strings. Closes: #641949 - uses a more sane error handling function, which does not dump core. Closes: #567940 - directly handles sensible-editor in poedit, making the debian change obsolete * Modernize the build system. - use dh and compat level 8 - for poedit vs potooledit, rather than patching the Makefile, fix up filenames after installation - bump standards-version to 3.9.3 - change the Conflicts on poedit to a Breaks, as recommended by the policy - update debian/copyright - use source format 3 -- Marcin Owsiany Thu, 16 Aug 2012 11:49:05 +0200 potool (0.12-1) unstable; urgency=low * New version. - Use the (correct) implicit rule to link potool. Fixes ubuntu bug 771140. * Ignore debhelper logfile. -- Marcin Owsiany Tue, 14 Jun 2011 08:41:17 +0200 potool (0.11-2) unstable; urgency=high * Update Polish manpage path in update-alternatives invocation. The wrong path (apart from making the Polish manpage version unavailable via 'poedit' name) caused postinst failures with lenny's dpkg version, which made it a grave bug. Closes: #597321 -- Marcin Owsiany Sat, 18 Sep 2010 18:14:37 +0100 potool (0.11-1) unstable; urgency=medium * New version. Upstream and Debian are now maintained in the same Git repository. * Includes a patch to poedit from Jakub Wilk for tempfile naming and cleanup. Closes: #533833, #533835 * Includes changes to check return codes/values from calls which can write to the filesystem. Closes: #546811 * Includes some manpage undefined macro cleanups. * Policy version update: - use filter function to parse DEB_BUILD_OPTIONS (elements are now whitespace-separated) - run the test suite after building - change the localized manpages path to not include country and encoding - do not ignore make clean errors - update the homepage URL and move it from the description to the dedicated header -- Marcin Owsiany Fri, 25 Sep 2009 21:47:59 +0100 potool (0.10-1) unstable; urgency=low * New upstream version - poedit now does some recoding, which hopefully Closes: #297074 * Added a watch file * Fixed install to obey nostrip. Closes: #437784 * Install all the new manpages properly, get rid of symlinks * Get rid of the README.PL, now that all documentation is propely in the manpages * Document that postats1 is gone in Debian.NEWS -- Marcin Owsiany Tue, 25 Sep 2007 10:30:02 +0100 potool (0.9-1) unstable; urgency=medium * New upstream revision - fixed plural entries support in filtering, merging and copying msgids -- Marcin Owsiany Tue, 15 May 2007 14:19:04 +0100 potool (0.8-1) unstable; urgency=medium * New upstream revision - fixed a segfault when filtering plural entries - fixed some memleaks -- Marcin Owsiany Tue, 15 May 2007 11:19:23 +0100 potool (0.7-2) unstable; urgency=low * Added a link to the new program's home page in description and copyright -- Marcin Owsiany Thu, 10 May 2007 22:28:45 +0100 potool (0.7-1) unstable; urgency=low * New upstream revision - adds support for msgid_plural and msgstr[N]. Closes: #422820 - adds error checking to postats scripts. Closes: #422835 * Changed from patching Makefile to set some variables to setting them on make command line in debian/rules -- Marcin Owsiany Thu, 10 May 2007 20:47:01 +0100 potool (0.6-1) unstable; urgency=low * New upstream revision - updates sort invocation syntax in postats{,1}. Closes: #416165 * debian/copyright: updated project website address and added CVS repository location * Update Standards-Version to 3.7.2 (no changes needed) -- Marcin Owsiany Sun, 25 Mar 2007 16:20:59 +0100 potool (0.5-2) unstable; urgency=low * Use alternatives mechanism to provide /usr/bin/poedit, since poedit package wants to change /usr/bin/poeditor to /usr/bin/poedit to match upstream name. Closes: #206062 * Change dh compat mode to 4 - added recommended ${misc:Depends} * Add conflicts with an old version of poedit, which used to provide /usr/bin/poedit as a non-alternative -- Marcin Owsiany Sun, 24 Aug 2003 15:37:18 +0200 potool (0.5-1) unstable; urgency=low * New upstream release - doesn't choke on obsolete entries with comments. * Pay attention to DEB_BUILD_OPTIONS * Updated standards-version -- Marcin Owsiany Tue, 1 Jul 2003 16:30:14 +0200 potool (0.4-1) unstable; urgency=low * New upstream release - fixes a bug which causes potool to use the tags from old file, instead the new one. -- Marcin Owsiany Tue, 8 Jan 2002 20:46:40 +0100 potool (0.3-1) unstable; urgency=low * New upstream release (added #include ) * Changed $EDITOR in poedit to $EDITCMD - otherwise sensible-editor loops. -- Marcin Owsiany Fri, 23 Nov 2001 01:41:26 +0100 potool (0.2-2) unstable; urgency=low * Changed my address in the manpage * Update Standards-Version to 3.5.6.0 -- Marcin Owsiany Mon, 5 Nov 2001 09:56:18 +0100 potool (0.2-1) unstable; urgency=low * New upstream release * poedit now uses sensible-editor * Added source-depends on debhelper * Removed -d flag on compilation * Updated Standards-Version to 3.5.3.0 -- Marcin Owsiany Thu, 26 Apr 2001 04:04:28 +0200 potool (0.1-2) unstable; urgency=low * Changed my email to @debian.org * Closed the wnpp bug. Closes: #79544 -- Marcin Owsiany Mon, 22 Jan 2001 02:39:34 +0100 potool (0.1-1) unstable; urgency=low * Initial Release. * This is my first Debian package. * Reset $DESTDIR to empty value and modified $BINDIR in Makefile to allow proper debianization * Commented out poupdate installation - need to make it work for any language first. -- Marcin Owsiany Wed, 13 Dec 2000 00:39:40 +0100 debian/NEWS0000644000000000000000000000026612013472250007665 0ustar potool (0.10-1) unstable; urgency=low * The "postats1" script is gone. Please use "postats -f" instead. -- Marcin Owsiany Mon, 24 Sep 2007 14:58:39 +0100