--- impose+-0.2.orig/Makefile
+++ impose+-0.2/Makefile
@@ -1,19 +1,44 @@
-DIST = AUTHORS \
- COPYING \
- INSTALL \
+DOC = AUTHORS \
README \
TODO \
- Makefile \
- bboxx \
- fixtd \
- impose \
- psbl \
- html/index.html \
- html/impose-ex.png \
- html/psnup-ex.png
+ html
+
+MAN = bboxx.1 \
+ fixtd.1 \
+ impose.1 \
+ psbl.1
+
+BIN = $(MAN:.1=)
+
+DIST = Makefile COPYING INSTALL $(DOC) $(BIN)
VER = 0.1
+DESTDIR = /usr/local
+
+all: man
+
dist:
tar cvf impose+-$(VER).tar $(DIST)
gzip impose+-$(VER).tar
+
+# Sneaky style sheet moves around between versions:
+man_style_sheet := \
+ $(shell /bin/ls /usr/share/xml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl /usr/share/sgml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+ 2>/dev/null | head -1)
+
+man: $(MAN)
+
+%.1: %.xml
+ @xsltproc -''-nonet $(man_style_sheet) $<
+
+install:
+ @mkdir -p $(DESTDIR)/bin
+ @mkdir -p $(DESTDIR)/share/doc/impose+/html
+ @cp $(BIN) $(DESTDIR)/bin
+ @cp -r $(DOC) $(DESTDIR)/share/doc/impose+
+ @rm -fr $(DESTDIR)/share/doc/impose+/html/CVS
+
+clean:
+ rm -f $(MAN)
+ rm -rf html/.xvpics
--- impose+-0.2.orig/bboxx
+++ impose+-0.2/bboxx
@@ -125,7 +125,7 @@
$|++; # auto flush output
# Use the new ghostscript bbox device
if (!$do_through_pbm) {
- my $gsopt = "-q -dNOPAUSE -sPAPERSIZE=$pagesize -sDEVICE=bbox -sOutputFile=-";
+ my $gsopt = "-q -dNOPAUSE -sPAPERSIZE=$pagesize -sDEVICE=bbox -sOutputFile=- -P- -dSAFER";
my $gscmd = "$GSPATH -r72 $gsopt -- $fn";
open(GS, "$gscmd 2>&1|");
my $page = 0;
--- impose+-0.2.orig/bboxx.xml
+++ impose+-0.2/bboxx.xml
@@ -0,0 +1,97 @@
+
+Yaroslav">
+ Halchenko">
+
+ February 4, 2004">
+ 1">
+ debian@onerussian.com">
+
+ BBOXX">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2003
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+
+ The program outputs the page number and the Bounding Box parameters
+ for every page in the file filename, by postprocessing the output
+ from the gs bbox device.
+
+
+
+
+ &dhpackage;
+
+
+
+
+
+
+
+ postscript.file
+
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage;. Run it with '-help' to see description of options
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+
+
+
+
+
+ SEE ALSO
+
+ impose (1), fixtd (1), psbl (1).
+
+
+
+ AUTHOR
+
+ 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, 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.
+
+
+
+
+
--- impose+-0.2.orig/debian/changelog
+++ impose+-0.2/debian/changelog
@@ -0,0 +1,111 @@
+impose+ (0.2-12.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/compat: 5 -> 7. (Closes: #965593)
+ * debian/rules: Add build-{arch,indep}. (Closes: #999176)
+
+ -- Adrian Bunk Mon, 27 Dec 2021 21:08:10 +0200
+
+impose+ (0.2-12.1) unstable; urgency=medium
+
+ * Non maintainer upload by the Reproducible Builds team.
+ * No source change upload to rebuild on buildd with .buildinfo files.
+
+ -- Holger Levsen Sun, 03 Jan 2021 13:42:30 +0100
+
+impose+ (0.2-12) unstable; urgency=low
+
+ * BF: follow recommendations for gs -- included -P- -dSAFER (Closes:
+ #584050)
+ * Compatibility level boosted to the lowest supported (5)
+ * Replaced suggests on deprecated gs with ghostscript
+ * Added misc:Depends
+ * Standards updated to 3.8.4: no additional changes necessary
+
+ -- Yaroslav Halchenko Mon, 31 May 2010 22:48:19 -0400
+
+impose+ (0.2-11) unstable; urgency=low
+
+ * Moving under git from CVS/SVN. Restoring proper upstream branch
+ * Removed bogus README.Debian
+ * Not ignoring errors while clean
+ * boosted standards to 3.7.3 (no changes)
+ * added VCS debian/control header entries
+ * wrap filename in cmdlines into '' (closes: #480864)
+
+ -- Yaroslav Halchenko Mon, 12 May 2008 10:14:22 -0400
+
+impose+ (0.2-10) UNRELEASED; urgency=low
+
+ * Homepage header field with correct URL.
+ * Once again thanks Marc for NMU.
+
+ -- Yaroslav Halchenko Tue, 05 Feb 2008 11:46:08 -0500
+
+impose+ (0.2-9.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Makefile: Fix bashism. (Closes: #459098)
+
+ -- Marc 'HE' Brockschmidt Fri, 25 Jan 2008 22:27:04 +0100
+
+impose+ (0.2-9) unstable; urgency=low
+
+ * Added debian/watch file for better QA
+
+ -- Yaroslav Halchenko Sun, 10 Dec 2006 21:27:36 -0500
+
+impose+ (0.2-8) unstable; urgency=low
+
+ * Added empty binary-arch rule to comply with policy (closes: #395603)
+ * Removed commented out lines in debian/rules
+ * Standards updated from 3.6.2 to 3.7.2: no changes necessary
+
+ -- Yaroslav Halchenko Fri, 27 Oct 2006 21:42:10 -0400
+
+impose+ (0.2-7) unstable; urgency=low
+
+ * Reverted to rely on gs where the bug was fixed
+ * Updated watch file
+ * Upgraded to the recent standards version
+
+ -- Yaroslav Halchenko Tue, 25 Apr 2006 15:39:11 -0400
+
+impose+ (0.2-6) unstable; urgency=low
+
+ * Suggests to use gs-afpl from non-free to overcome bug #250290 reported
+ for gs-gpl. Issues warning during installation
+
+ -- Yaroslav Halchenko Mon, 21 Jun 2004 15:50:46 -0400
+
+impose+ (0.2-5) unstable; urgency=low
+
+ * Closes: #253689: Autobuilt package has .xvpics directory
+
+ -- Yaroslav Halchenko Fri, 11 Jun 2004 20:45:11 -0400
+
+impose+ (0.2-4) unstable; urgency=low
+
+ * added missing build depend on docbook-xsl. Closes: #233713
+
+ -- Alexander Schmehl Sat, 17 Apr 2004 16:28:25 +0000
+
+impose+ (0.2-3) unstable; urgency=low
+
+ * Adjusted description to close bug #234674
+
+ -- Yaroslav Halchenko Sun, 21 Mar 2004 13:48:13 -0500
+
+impose+ (0.2-2) unstable; urgency=low
+
+ * allow use in pipe by sending aux information to standard output
+ * aux output now suppressed by default; enable using -v option
+
+ -- Yaroslav Halchenko Thu, 19 Feb 2004 11:06:49 -0500
+
+impose+ (0.2-1) unstable; urgency=low
+
+ * Initial Release.
+ * Architecture-independent build.
+
+ -- Yaroslav Halchenko Thu, 5 Feb 2004 16:59:32 -0500
--- impose+-0.2.orig/debian/compat
+++ impose+-0.2/debian/compat
@@ -0,0 +1 @@
+7
--- impose+-0.2.orig/debian/control
+++ impose+-0.2/debian/control
@@ -0,0 +1,33 @@
+Source: impose+
+Section: text
+Priority: optional
+Maintainer: Yaroslav Halchenko
+Build-Depends: debhelper (>= 5.0.0), xsltproc, docbook-xml, docbook-xsl
+Standards-Version: 3.8.4
+Homepage: http://freshmeat.net/projects/impose/
+Vcs-Browser: http://git.onerussian.com/?p=impose+
+Vcs-git: http://git.onerussian.com/vcs/impose+
+
+
+Package: impose+
+Architecture: all
+Depends: psutils, ${perl:Depends}, ${misc:Depends}
+Suggests: ghostscript
+Description: Postscript utilities for two-up printing, bbox, etc
+ A set of utilities for manipulating DSC compliant postscript. The
+ following programs are included:
+ .
+ impose: A preprocessor to pstops for creating 2-up printouts. It
+ tries to remove white space from the printout by probing the original
+ postscript for the printed area's bounding box. This makes the
+ output more esthetic than a simplistic layout of non-cropped original
+ pages.
+ .
+ bboxx: Extracts the bounding boxes of a postscript file, with the
+ option of entering the bounding box into the file. This program uses
+ the ghostscript bbox device.
+ .
+ fixtd: Sets options in a Postscript file asking the printer to turn
+ on tumbling or duplex printing.
+ .
+ psbl: Rearranges pages in a file to create booklets.
--- impose+-0.2.orig/debian/copyright
+++ impose+-0.2/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Yaroslav Halchenko on
+Wed, 4 Feb 2004 18:52:36 -0500.
+
+It was downloaded from http://freshmeat.net/projects/impose/
+
+Upstream Author: Dov (Peter) Grobgeld
+
+Copyright: 2003 Dov (Peter) Grobgeld
+
+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.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+All files in the package are distributed under GNU General Public
+License (Version 2, June 1991). On Debian GNU/Linux systems, the
+complete text of the GNU General Public License version 2 can be found
+in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is (C) 2004-2006, Yaroslav Halchenko
+ and is licensed under the GPL, see above.
--- impose+-0.2.orig/debian/dirs
+++ impose+-0.2/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/doc
--- impose+-0.2.orig/debian/docs
+++ impose+-0.2/debian/docs
@@ -0,0 +1,6 @@
+README
+TODO
+AUTHORS
+README
+TODO
+html
--- impose+-0.2.orig/debian/rules
+++ impose+-0.2/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+
+build-stamp:
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ rm -f build-stamp
+
+ $(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/impose+/usr
+
+#
+# Just to comply with policy 4.8
+binary-arch:
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs -XCVS -Xxvpics
+ dh_installman *.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_perl
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+build-arch: build
+build-indep: build
+binary: binary-indep
+.PHONY: build build-arch build-indep clean binary-indep binary install configure
--- impose+-0.2.orig/debian/watch
+++ impose+-0.2/debian/watch
@@ -0,0 +1,6 @@
+# watch control file for uscan
+# Run the "uscan" command to check for upstream updates and more.
+# Site Directory Pattern Version Script
+version=3
+
+http://imagic.weizmann.ac.il/~dov/freesw/impose+/ impose\+-([\d.]+)\.tar\.gz debian svn-upgrade
--- impose+-0.2.orig/fixtd
+++ impose+-0.2/fixtd
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
#############################################################################
# This scripts changes a postscript with twoup so that every other page
# will no longer be printed upside down.
--- impose+-0.2.orig/fixtd.xml
+++ impose+-0.2/fixtd.xml
@@ -0,0 +1,90 @@
+
+Yaroslav">
+ Halchenko">
+
+ February 4, 2004">
+ 1">
+ debian@onerussian.com">
+
+ FIXTD">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2003
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+
+ insert tumble and duplex directives in a PostScript file
+
+
+
+
+ &dhpackage;
+
+
+
+ postscript.file
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage;. Run it with '-help' to see description of options
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+
+
+
+
+
+ SEE ALSO
+
+ impose (1), psbl (1), bboxx (1).
+
+
+
+ AUTHOR
+
+ 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, 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.
+
+
+
+
+
--- impose+-0.2.orig/impose
+++ impose+-0.2/impose
@@ -32,6 +32,7 @@
my($filename, $path, $do_erase_tmp);
my($evenwidth, $evenheight);
my($oddwidth, $oddheight);
+my($verbose);
while($_=$ARGV[0],/^-/) {
shift;
@@ -67,7 +68,8 @@
-lastbbox Use bbox information of last run of $0.
-stdout Print output to stdout.
-rtl Do RTL layout of pages
-
+ -v Verbose operation
+
Author:
Dov Grobgeld
EOHELP
@@ -97,6 +99,7 @@
/^-evenbbox/ && do { $evenbbox[0]=shift; $evenbbox[1]=shift; $evenbbox[2]=shift; $evenbbox[3]=shift; next; };
/^-oddbbox/ && do { $oddbbox[0]=shift; $oddbbox[1]=shift; $oddbbox[2]=shift; $oddbbox[3]=shift; next; };
/^-lastbbox/ && do { $lastbbox++; next };
+ /^-v/ && do {$verbose++; next; };
die "Unknown option $_!\n";
}
@@ -212,7 +215,7 @@
my $shiftevenx = sprintf("%.1f", $height-$xright-$evenwidth - $evenbbox[0]);
$scaling= sprintf("%.4f", $scaling);
-my $pstops_prm;
+my($pstops_prm, $pstops_swtch);
if ($rtl) {
$pstops_prm = "2:1${rotdir}\@${scaling}($shifty,$shiftoddx)+0${rotdir}\@${scaling}($shifty,$shiftevenx)";
}
@@ -220,10 +223,12 @@
$pstops_prm = "2:0${rotdir}\@${scaling}($shifty,$shiftoddx)+1${rotdir}\@${scaling}($shifty,$shiftevenx)";
}
+$pstops_swtch = " -q " unless $verbose;
+
my $out = "|fixtd -tumble" unless $no_tumble;
-$out .= "> $filename.imposed" unless $do_stdout;
-my $cmd="pstops '$pstops_prm' $path/$filename $out";
-print STDERR $cmd,"\n";
+$out .= "> '$filename.imposed'" unless $do_stdout;
+my $cmd="pstops $pstops_swtch '$pstops_prm' '$path/$filename' $out";
+print STDERR $cmd,"\n" if $verbose;
system $cmd;
unlink "$path/$filename" if $do_erase_tmp;
@@ -233,10 +238,10 @@
# This should really only look for some reasonable amount of pages...
$pages = "-pages $pages" if $pages;
- my $cmd= "bboxx -evenodd $pages $filename";
- print "$cmd\n";
+ my $cmd= "bboxx -evenodd $pages '$filename'";
+ print STDERR "$cmd\n" if $verbose;
$_ = `$cmd`;
- print;
+ print STDERR if $verbose;
# Get the odd pages bounding box
my ($llx,$lly,$urx,$ury) = /Odd: \s*(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/;
--- impose+-0.2.orig/impose.xml
+++ impose+-0.2/impose.xml
@@ -0,0 +1,112 @@
+
+Yaroslav">
+ Halchenko">
+
+ February 4, 2004">
+ 1">
+ debian@onerussian.com">
+
+ IMPOSE">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2003
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+
+ impose is used for two-up printing of DSC complient
+ postscript. It makes an effort to remove white space from the
+ printout by probing the original postscript for the bounding box
+ of the printed area. This makes the output much more esthetic
+ than does a simplistic layout of non-cropped original papers.
+
+
+
+
+ &dhpackage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ postscript.file
+
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage;. Run it with '-help' to see description of options
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+
+
+
+
+
+ SEE ALSO
+
+ bboxx (1), fixtd (1), psbl (1).
+
+
+
+ AUTHOR
+
+ 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, 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.
+
+
+
+
+
--- impose+-0.2.orig/psbl
+++ impose+-0.2/psbl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
######################################################################
# Perl font split impose
@@ -68,12 +68,12 @@
if ($end > $pages) {
$end = $pages;
}
- $cmd = "psselect $start-$end $psname | fixtd -tumble | psbook > $psname.$start-$end";
+ $cmd = "psselect $start-$end '$psname' | fixtd -tumble | psbook > '$psname.$start-$end'";
print "$cmd\n";
system $cmd;
$lastbbox = "-lastbbox" if $i > 0;
- $cmd = "impose $impose_options $lastbbox $psname.$start-$end";
+ $cmd = "impose $impose_options $lastbbox '$psname.$start-$end'";
print "$cmd\n";
system $cmd;
--- impose+-0.2.orig/psbl.xml
+++ impose+-0.2/psbl.xml
@@ -0,0 +1,93 @@
+
+Yaroslav">
+ Halchenko">
+
+ February 4, 2004">
+ 1">
+ debian@onerussian.com">
+
+ PSBL">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2003
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+
+ A program for automatic booklet formatting of postscript files
+
+
+
+
+ &dhpackage;
+
+
+
+
+
+
+ postscript.file
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage;. Run it with '-help' to see description of options
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+
+
+
+
+
+ SEE ALSO
+
+ impose (1), fixtd (1), bboxx (1).
+
+
+
+ AUTHOR
+
+ 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, 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.
+
+
+
+
+