debian/0000755000000000000000000000000012142034313007157 5ustar debian/latexdiff.docs0000644000000000000000000000003112142034313011771 0ustar README latexdiff-man.pdf debian/latexdiff.examples0000644000000000000000000000001012142034313012654 0ustar contrib debian/rules0000755000000000000000000000075712142034313010250 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %.1: % pod2man $< $@ %: dh $@ override_dh_auto_build: latexdiff.1 latexdiff-vc.1 latexrevise.1 latexdiff-man.pdf latexdiff-man.pdf: doc/latexdiff-man.tex debian/Makefile.manual make -f debian/Makefile.manual latexdiff-man.pdf override_dh_installexamples: dh_installexamples sed -i '1s|^#! /bin/env python|#!/usr/bin/python|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/contrib/latexchanges.py debian/Makefile.manual0000644000000000000000000000163612142034313012101 0ustar # this Makefile originally written by Frederik Tilman. Modified for Debian by David Bremner. DIR=doc latexdiff-man.pdf: $(DIR)/latexdiff-man.tex latexdiff.tex latexdiff-vc.tex latexrevise.tex example-diff.pdf pdflatex $(DIR)/latexdiff-man.tex pdflatex $(DIR)/latexdiff-man.tex latexdiff.tex: latexdiff pod2latex latexdiff; sed 's/--/-{}-/g' latexdiff.tex > tmp$$.tex ; mv tmp$$.tex latexdiff.tex latexrevise.tex: latexrevise pod2latex latexrevise ; sed 's/--/-{}-/g' latexrevise.tex > tmp$$.tex ; mv tmp$$.tex latexrevise.tex latexdiff-vc.tex: latexdiff-vc pod2latex latexdiff-vc; sed 's/--/-{}-/g' latexdiff-vc.tex > tmp$$.tex ; mv tmp$$.tex latexdiff-vc.tex example-diff.pdf: $(DIR)/example-diff.tex pdflatex $(DIR)/example-diff.tex example-diff.tex: example/example-draft.tex example/example-rev.tex latexdiff ./latexdiff-fast -t UNDERLINE example/example-draft.tex example/example-rev.tex > example-diff.tex debian/patches/0000755000000000000000000000000012142034313010606 5ustar debian/patches/series0000644000000000000000000000014012142034313012016 0ustar 0001-Make-the-choice-of-dvips-or-pdftex-optional-conditio.patch pod-error.patch file-copy.patch debian/patches/pod-error.patch0000644000000000000000000000046512142034313013545 0ustar Description: fix POD error Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2013-03-20 --- a/latexdiff +++ b/latexdiff @@ -2686,6 +2686,7 @@ =head2 Miscellaneous =over 4 + =item B<--verbose> or B<-V> Output various status information to stderr during processing. debian/patches/file-copy.patch0000644000000000000000000000350612142034313013522 0ustar From 6c3416cb31e0d880ed51594ec20cba2d774b9d8b Mon Sep 17 00:00:00 2001 From: David Bremner Date: Thu, 2 May 2013 21:42:37 -0300 Subject: [PATCH] replace use of system("cp ...") with File::Copy This had to be patched in any case because the original "\cp" is passing a control-p character to the shell. I decided to replace it wiht File::Copy to avoid an extra shell process and also to hopefully be a bit more portable. File::Copy has been in core since 5.002 (i.e. forever) so it should not be a problem. --- latexdiff-vc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/latexdiff-vc b/latexdiff-vc index 16b0dea..9881f25 100755 --- a/latexdiff-vc +++ b/latexdiff-vc @@ -38,6 +38,8 @@ use Getopt::Long ; use Pod::Usage qw/pod2usage/ ; use File::Temp qw/tempdir/ ; use File::Basename qw/dirname/; +use File::Copy; + use strict ; use warnings ; @@ -233,7 +235,7 @@ while ( $infile=$file2=shift @files ) { ### system("$diffcmd$revs[0] $infile| $patchcmd -o$file1") ; if (system("$diffcmd$revs[0] $infile | $patchcmd -o$file1")==0 and -z $file1 ) { # no differences detected, i.e. file is equal to current version - system("\cp $infile $file1"); + copy($infile,$file1) || die "copy failed: $!"; } } elsif ( scalar(@revs) == 2 ) { ($file1=$infile) =~ s/\.(tex|bbl)/-oldtmp-$$.$1/ ; @@ -241,10 +243,10 @@ while ( $infile=$file2=shift @files ) { push @tmpfiles,$file2; ; if (system("$diffcmd$revs[1] $infile | $patchcmd -o$file2")==0 and -z $file2 ) { - system("\cp $infile $file2"); + copy($infile,$file2) || die "copy failed: $!"; } if (system("$diffcmd$revs[0] $infile | $patchcmd -o$file1")==0 and -z $file1 ) { - system("\cp $infile $file1"); + copy($infile,$file1) || die "copy failed: $!"; }; } -- 1.8.2.rc2 debian/patches/0001-Make-the-choice-of-dvips-or-pdftex-optional-conditio.patch0000644000000000000000000000317012142034313024155 0ustar From: David Bremner Date: Sat, 11 Dec 2010 20:19:04 -0400 Subject: [PATCH] Make the choice of 'dvips' or 'pdftex' optional conditional on whether pdflatex is producing pdf or not (using the ifpdf package). Thanks to Vincent Lefevre for the suggestion. --- latexdiff | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) --- a/latexdiff +++ b/latexdiff @@ -3291,14 +3291,24 @@ institute %DIF END FONTSTRIKE PREAMBLE %DIF CCHANGEBAR PREAMBLE +\RequirePackage{ifpdf} +\ifpdf +\RequirePackage[pdftex]{changebar} +\else \RequirePackage[dvips]{changebar} +\fi \RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} \providecommand{\DIFadd}[1]{\protect\cbstart{\protect\color{blue}#1}\protect\cbend} \providecommand{\DIFdel}[1]{\protect\cbdelete{\protect\color{red}#1}\protect\cbdelete} %DIF END CCHANGEBAR PREAMBLE %DIF CFONTCHBAR PREAMBLE +\RequirePackage{ifpdf} +\ifpdf +\RequirePackage[pdftex]{changebar} +\else \RequirePackage[dvips]{changebar} +\fi \RequirePackage{color}\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1} \providecommand{\DIFadd}[1]{\protect\cbstart{\protect\color{blue}\sf #1}\protect\cbend} \providecommand{\DIFdel}[1]{\protect\cbdelete{\protect\color{red}\scriptsize #1}\protect\cbdelete} @@ -3313,7 +3323,13 @@ institute %DIF END CULINECHBAR PREAMBLE %DIF CHANGEBAR PREAMBLE +\RequirePackage{ifpdf} +\ifpdf +\RequirePackage[pdftex]{changebar} +\else \RequirePackage[dvips]{changebar} +\fi + \providecommand{\DIFadd}[1]{\protect\cbstart{#1}\protect\cbend} \providecommand{\DIFdel}[1]{\protect\cbdelete} %DIF END CHANGEBAR PREAMBLE debian/changelog0000644000000000000000000000447712142034313011045 0ustar latexdiff (1.0.2-1) unstable; urgency=low * New upstream version Closes: #703410 * Fix broken symlinks to /usr/bin/latexdiff-vc, add new one for git support. * Add new patch "file-copy" to replace use of system with File::Copy [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. * Remove debian/latexdiff-man.tex, now included in doc/. * debian/copyright: update upstream copyright and license information. * Update build and install steps. The upstream Makefile is gone, and some files have changed location. * Patches: Refresh 0001-Make-the-choice-of-dvips-or-pdftex-optional- conditio.patch (offset), drop 0002-Add-equation-to-the-regular- expression-for-math-envi.patch (merged upstream). Add a patch to fix a POD error. * Register PDF manual with doc-base. * Fix hashbang in example script. * Set Standards-Version to 3.9.4 (no changes). -- David Bremner Thu, 02 May 2013 22:27:28 -0300 latexdiff (0.5-4) unstable; urgency=low [ Damyan Ivanov ] * move VCS-* from apps/ to packages/ [ David Bremner ] * Add build-depends on texlive-generic-recommended (Closes: #666581). * Update Standards-Version to 3.9.3 (no changes) [ gregor herrmann ] * Set debhelper compatibility level to 8. * debian/copyright: update to Copyright-Format 1.0. * Update years of packaging copyright. -- David Bremner Sun, 01 Apr 2012 10:52:43 -0300 latexdiff (0.5-3) experimental; urgency=low Implement two suggestions of Vincent Lefevre: - Choose either pdftex or dvips options for changebar using ifpdf (Closes: #598735). - Add equation* to known math environments. (Closes: #598736) * Update Standards-Version to 3.9.1 (No changes). -- David Bremner Sat, 11 Dec 2010 21:00:58 -0400 latexdiff (0.5-2) unstable; urgency=low * Update debian/copyright to document presense of inlined copies of Algorithm::Diff. * Update Standards-Version to 3.8.3 (No changes). -- David Bremner Sun, 16 Aug 2009 13:25:23 -0300 latexdiff (0.5-1) unstable; urgency=low * Initial release (Closes: #504411) -- David Bremner Wed, 12 Aug 2009 09:00:58 -0300 debian/latexdiff.doc-base0000644000000000000000000000033712142034313012527 0ustar Document: latexdiff Title: latexdiff Manual Author: Frederik Tilman Abstract: Marking up differences between LaTeX files with latexdiff Section: Typesetting Format: PDF Files: /usr/share/doc/latexdiff/latexdiff-man.pdf.gz debian/latexdiff.links0000644000000000000000000000112612142034313012167 0ustar usr/share/man/man1/latexdiff-vc.1.gz usr/share/man/man1/latexdiff-svn.1.gz usr/share/man/man1/latexdiff-vc.1.gz usr/share/man/man1/latexdiff-cvs.1.gz usr/share/man/man1/latexdiff-vc.1.gz usr/share/man/man1/latexdiff-rcs.1.gz usr/share/man/man1/latexdiff-vc.1.gz usr/share/man/man1/latexdiff-git.1.gz usr/share/man/man1/latexdiff.1.gz usr/share/man/man1/latexdiff-fast.1.gz usr/bin/latexdiff-fast usr/bin/latexdiff usr/bin/latexdiff-vc usr/bin/latexdiff-cvs usr/bin/latexdiff-vc usr/bin/latexdiff-rcs usr/bin/latexdiff-vc usr/bin/latexdiff-svn usr/bin/latexdiff-vc usr/bin/latexdiff-git debian/watch0000644000000000000000000000030112142034313010202 0ustar version=3 opts=downloadurlmangle=s/prdownload/download/ \ http://developer.berlios.de/project/showfiles.php?group_id=13015 \ http://prdownload.berlios.de/latexdiff/latexdiff-(.+).tar.gz debian/latexdiff.install0000644000000000000000000000010512142034313012511 0ustar latexdiff-fast usr/bin latexrevise usr/bin latexdiff-vc usr/bin debian/clean0000644000000000000000000000040112142034313010157 0ustar latexdiff-man.pdf example-diff.aux example-diff.log example-diff.pdf example-diff.tex latexdiff-man.aux latexdiff-man.log latexdiff-vc.aux latexdiff-vc.tex latexdiff.aux latexdiff.tex latexrevise.aux latexrevise.tex latexdiff.1 latexdiff-vc.1 latexrevise.1 debian/control0000644000000000000000000000264112142034313010565 0ustar Source: latexdiff Maintainer: Debian Perl Group Uploaders: David Bremner Section: tex Priority: optional Build-Depends: debhelper (>= 8), texlive-latex-base, texlive-generic-recommended Standards-Version: 3.9.4 Vcs-Browser: http://git.debian.org/?p=pkg-perl/packages/latexdiff.git Vcs-Git: git://anonscm.debian.org/git/pkg-perl/packages/latexdiff.git Homepage: http://bullard.esc.cam.ac.uk/~tilmann/soft.html Package: latexdiff Architecture: all Depends: ${perl:Depends}, ${misc:Depends} Recommends: texlive-latex-base, texlive-latex-extra Suggests: subversion | cvs | rcs Description: utility to mark up significant differences between LaTeX files latexdiff compares two LaTeX files and marks up significant differences between them (i.e. a diff for LaTeX files). It generates a new LaTeX file containing the annotated differences. . Various options are available for visual markup using standard LaTeX packages such as 'color.sty'. Changes not directly affecting visible text, for example in formatting commands, are still marked in the LaTeX source. . A rudimentary revision facilility is provided by another Perl script, 'latexrevise', which accepts or rejects all changes. Manual editing of the difference file can be used to override this default behaviour and accept or reject selected changes only. debian/compat0000644000000000000000000000000212142034313010355 0ustar 8 debian/copyright0000644000000000000000000000727512142034313011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://developer.berlios.de/projects/latexdiff/ Upstream-Name: latexdiff Upstream-Contact: F J Tilmann Files: * Copyright: © 2004-2012 Frederik Tilmann License: GPL-3 Files: latexdiff latexdiff-fast latexdiff-so latexdiff-vc latexrevise Copyright: © 2004-2012 Frederik Tilmann License: GPL-3+ Files: contrib/latexdiff-wrap Copyright: © 2005-2006 Volker Kuhlmann License: GPL-2 Files: contrib/latexchanges.py Copyright: 2009 Jan-Åke Larsson License: GPL-3 Comment: It is assumed that this file is released under the same license as the main files. Files: latexdiff-so latexdiff-fast (inlined Algorithm::Diff) Copyright: © 2000-2002 Ned Konz. All rights reserved. License: Artistic or GPL-1+ Files: debian/* Copyright: © 2008, Pietro Abate © 2009-2012, David Bremner License: GPL-2 Files: debian/Makefile.manual Copyright: © 2004-2009 Frederik Tilmann License: GPL-2 To: David Bremner Subject: Re: latexdiff-man.pdf From: Frederik Tilmann Date: Wed, 12 Aug 2009 03:23:03 +0100 . Hi David . thanks for taking on the packaging for Debian. Mostly, the documentation is in pod format and already in the distribution (within latexdiff and latexrevise, and latexdiff-vc), but there is a separate .tex file as well. Below is the snippet from my internal Makefile that prepares the distribution (in directory dist) and I attach latexdiff-man.tex. All the other files needed should be in the distribution (but the paths will need adapting). . I note your comments regarding version numbering, and also will see that I include the latexdiff-man.tex file in the next release on CTAN but I have been rather busy of late, so the next release is not imminent. . Regards Frederik License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian GNU/Linux systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ 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 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. . On Debian systems, the complete text of the version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. License: GPL-3 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation. . On Debian systems, the complete text of the version 3 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. License: GPL-3+ 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 3, or (at your option) any later version. . On Debian systems, the complete text of version 3 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. debian/latexdiff.manpages0000644000000000000000000000005112142034313012636 0ustar latexdiff.1 latexdiff-vc.1 latexrevise.1 debian/source/0000755000000000000000000000000012142034313010457 5ustar debian/source/format0000644000000000000000000000001412142034313011665 0ustar 3.0 (quilt)