From afcb433c2563d2f4d38f9389f006e422fce8fc54 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 Jul 2022 12:04:10 +0100 Subject: [PATCH] wip overflow tube Signed-off-by: Ian Jackson --- .gitignore | 2 ++ Makefile | 4 ++-- overflow-tube.ps.pl | 13 +++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 overflow-tube.ps.pl diff --git a/.gitignore b/.gitignore index 7e8105b..349ab9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ pumpkin-books.ps pumpkin-books.pdf +overflow-tube.ps +overflow-tube.pdf bag.pgm pot.pgm droplet.ppm diff --git a/Makefile b/Makefile index 05473ce..1a58fe5 100644 --- a/Makefile +++ b/Makefile @@ -33,10 +33,10 @@ use_rsvg=rsvg-convert -f png -o $@.tmp.png $< shell_pipe=set -o pipefail; set -e; make_pnm = pnmdepth 255 | pnmnoraw $o -pumpkin-books.ps: pumpkin-books.ps.pl bag.pgm pot.pgm droplet.ppm +%.ps: %.ps.pl bag.pgm pot.pgm droplet.ppm ./$< $(BOOKS) $o -pumpkin-books.pdf: pumpkin-books.ps +%.pdf: %.ps gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress \ -sDEVICE=pdfwrite -sOutputFile=$@ $< diff --git a/overflow-tube.ps.pl b/overflow-tube.ps.pl new file mode 100755 index 0000000..d656f1f --- /dev/null +++ b/overflow-tube.ps.pl @@ -0,0 +1,13 @@ +#!/usr/bin/perl -w +# Books of Pumpkins, etc. Extensions to Quacks of Quedlinburg +# SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0 +# Copyright 2020-2022 Ian Jackson + +use strict; + +BEGIN { unshift @INC, '.'; } +use Quacks; + +ps_head(); + +print $ps_framing or die $!; -- 2.30.2