debian/0000755000000000000000000000000012171205072007163 5ustar debian/apgdiff.install0000644000000000000000000000004212106654665012165 0ustar dist/apgdiff-*.jar usr/share/java debian/apgdiff.sh0000755000000000000000000000010312106654665011132 0ustar #!/bin/sh exec java -jar /usr/share/java/apgdiff-VERSION.jar "$@" debian/README.source0000644000000000000000000000353512106654665011366 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches break fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. debian/apgdiff.1.txt0000644000000000000000000000357512106654665011513 0ustar APGDIFF(1) ========== Christoph Berg NAME ---- apgdiff - Another PostgreSQL Diff Tool SYNOPSIS -------- Usage: apgdiff [options] DESCRIPTION ----------- Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades. The tool compares two schema dump files and creates an SQL output file that is (after some hand-made modifications) suitable for upgrades of old schemata. OPTIONS ------- --version:: displays apgdiff version --add-defaults:: adds DEFAULT ... in case new column has NOT NULL constraint but no default value (the default value is dropped later) --add-transaction:: adds START TRANSACTION and COMMIT TRANSACTION to the generated diff file --ignore-function-whitespace:: ignores multiple spaces and new lines when comparing content of functions - WARNING: this may cause functions to appear to be same in cases they are not, so use this feature only if you know what you are doing --ignore-start-with:: ignores START WITH modifications on SEQUENCEs (default is not to ignore these changes) --in-charset-name :: charset that should be used for reading input files (standard charset name supported by Java, default is UTF-8) --out-charset-name :: charset that should be used for writing output (standard charset name supported by Java, default is UTF-8) --output-ignored-statements:: outputs information about DDL statements that apgdiff ignores at this moment (it will not output any SELECT, INSERT, UPDATE and/or DELETE statements) --ignore-slony-triggers:: when parsing SQL statements, ignores Slony triggers named _slony_logtrigger and _slony_denyaccess --list-charsets:: lists all supported charsets AUTHOR ------ Miroslav Šulc . This manual page was written by Christoph Berg for the Debian system (but may be used by others). debian/patches/0000755000000000000000000000000012171205031010605 5ustar debian/patches/build.xml0000644000000000000000000000107712171205030012432 0ustar Set fork=true to fix java.lang.NoClassDefFoundError: junit/framework/JUnit4TestAdapterCache See http://lists.debian.org/debian-java/2013/06/msg00086.html --- a/build.xml +++ b/build.xml @@ -74,7 +74,7 @@ description="Run the test cases"> + fork="true" dir="."> debian/patches/series0000644000000000000000000000001212171204676012031 0ustar build.xml debian/source/0000755000000000000000000000000012171200071010455 5ustar debian/source/format0000644000000000000000000000001412106654665011707 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000252012110363620011112 0ustar This package was debianized by Christoph Berg on Fri, 05 Sep 2008 13:37:58 +0200. The .orig.tar.gz file was created by repacking upstream's .zip file. Upstream website: http://www.apgdiff.com/ Author: Miroslav Šulc Copyright and License: Copyright (c) 2006 StartNet s.r.o. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/watch0000644000000000000000000000017012110363301010203 0ustar version=3 http://www.apgdiff.com/download.php download/apgdiff-(.*)-src.zip #http://sf.net/apgdiff/apgdiff-(.+)-src.zip debian/apgdiff.manpages0000644000000000000000000000002112106654665012307 0ustar debian/apgdiff.1 debian/control0000644000000000000000000000157212106654665010611 0ustar Source: apgdiff Maintainer: Christoph Berg Standards-Version: 3.9.4 Section: database Priority: extra Build-Depends-Indep: asciidoc, docbook-xml, docbook-xsl, libxml2-utils, xsltproc, default-jdk, # test suite: junit4, ant-optional, libhamcrest-java Build-Depends: ant, debhelper (>= 7.0.50~) Homepage: http://apgdiff.startnet.biz/ Vcs-Svn: svn://svn.debian.org/pkg-postgresql/trunk/apgdiff Vcs-Browser: http://svn.debian.org/viewsvn/pkg-postgresql/trunk/apgdiff Package: apgdiff Architecture: all Depends: default-jre-headless | java2-runtime-headless, ${misc:Depends} Description: Another PostgreSQL Diff Tool Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades. The tool compares two schema dump files and creates an SQL output file that is (after some hand-made modifications) suitable for upgrades of old schemata. debian/rules0000755000000000000000000000247312171204631010251 0ustar #!/usr/bin/make -f VERSION=$(shell dpkg-parsechangelog | perl -lne 'print $$1 if /Version: (.*)-/') debian/apgdiff.1: debian/apgdiff.1.txt a2x -f manpage debian/apgdiff.1.txt build-arch: build build-indep: build-stamp build-stamp: debian/apgdiff.1 ant -Dnoget=1 jar # setting up test suite -mkdir lib cp /usr/share/java/junit4.jar lib/junit.jar cp -a /usr/share/java/hamcrest-* lib ant -Dnoget=1 compile-tests ant -Dnoget=1 test touch $@ override_dh_installchangelogs: dh_installchangelogs README.md install: build-stamp dh_prep install -d debian/apgdiff/usr/bin sed -e 's/VERSION/$(VERSION)/' debian/apgdiff.sh > debian/apgdiff/usr/bin/apgdiff dh install binary-arch: binary binary-indep: install clean: ant -Dnoget=1 clean rm -f src/main/resources/cz/startnet/utils/pgdiff/usage.xml rm -f build-stamp debian/apgdiff.1 debian/apgdiff.1.xml dh_clean %: dh $@ origtgz: test ! -e ../apgdiff_$(VERSION).orig.tar.gz test ! -d ../orig/apgdiff-$(VERSION) mkdir -p ../orig/apgdiff-$(VERSION) cp -a * ../orig/apgdiff-$(VERSION) rm -rf ../orig/apgdiff-$(VERSION)/debian find ../orig/apgdiff-$(VERSION) -name .svn | xargs -r rm -rf cd ../orig && tar -czf ../apgdiff_$(VERSION).orig.tar.gz apgdiff-$(VERSION) rm -rf ../orig/apgdiff-$(VERSION) rmdir ../orig .PHONY: build build-arch build-indep clean origtgz debian/compat0000644000000000000000000000000212106654665010377 0ustar 7 debian/changelog0000644000000000000000000000522412171205054011040 0ustar apgdiff (2.4-2) unstable; urgency=low * Update watch file to point to http://www.apgdiff.com/download.php. * build.xml: Set fork=true to fix java.lang.NoClassDefFoundError: junit/framework/JUnit4TestAdapterCache. -- Christoph Berg Tue, 16 Jul 2013 10:11:55 +0200 apgdiff (2.4-1) experimental; urgency=low * New upstream version. + Supports IF NOT EXISTS in CREATE TABLE. (Closes: #671395) * Use 3.0 (quilt). * Use README.md as upstream changelog file. -- Christoph Berg Mon, 24 Sep 2012 11:24:01 +0200 apgdiff (2.3-1) unstable; urgency=low * New upstream version. -- Christoph Berg Sun, 31 Oct 2010 19:45:57 +0100 apgdiff (2.2.2-1) unstable; urgency=low * New upstream version. * Using changelog included in zipfile, thanks Miroslav for providing this. * Update manpage. -- Christoph Berg Mon, 11 Oct 2010 09:08:18 +0200 apgdiff (2.2-1) unstable; urgency=low * New upstream version. * Update homepage location. * Finally enable test suite, yay! -- Christoph Berg Sat, 02 Oct 2010 19:35:17 +0200 apgdiff (1.4-2) unstable; urgency=low * Change java runtime depends to default-jre-headless | java2-runtime-headless. (Closes: #573377) -- Christoph Berg Thu, 11 Mar 2010 10:00:37 +0100 apgdiff (1.4-1) unstable; urgency=low * New upstream version. (Without changelog, I am afraid.) * Test suite still not enabled as it needs network access. (The junit version in Debian needs upgrading.) * Optimize rules files a bit so debhelper doesn't clean twice, and quilt's patch target doesn't prevent build-stamp from working. -- Christoph Berg Wed, 02 Dec 2009 11:11:33 +0100 apgdiff (1.3-3) unstable; urgency=low * Build-Depend on default-jdk. (Closes: #543055) * Use Section: database. * Thanks to Michael Koch for packaging tips. -- Christoph Berg Fri, 28 Aug 2009 21:28:17 +0200 apgdiff (1.3-2) unstable; urgency=low * Add asciidoc to Build-Depends. (Closes: #533919) * Also fix warnings about deprecated glossary syntax in apgdiff.1.txt, and add libxml2-utils to Build-Depends. By Andres Rodriguez. (Closes: #534395) -- Christoph Berg Thu, 25 Jun 2009 11:41:38 +0200 apgdiff (1.3-1) unstable; urgency=low * New upstream version. * Manually copy changelog entries from sourceforge.net to CHANGES. * Use quilt. * Add watch file. -- Christoph Berg Mon, 04 May 2009 11:24:40 +0200 apgdiff (1.2-1) unstable; urgency=low * Initial release. -- Christoph Berg Tue, 09 Sep 2008 15:42:54 +0200