diff options
author | johans <johans@FreeBSD.org> | 2009-08-24 01:07:55 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2009-08-24 01:07:55 +0800 |
commit | c4d228e708a8e145ed5455041d9f23c6071c2d88 (patch) | |
tree | 3015259e713bd91b906d12622a49d96544724489 /print/pdfjam | |
parent | 3528dd8c7277d2d6adfaf46f7f7187a199fe1c04 (diff) | |
download | freebsd-ports-graphics-c4d228e708a8e145ed5455041d9f23c6071c2d88.tar.gz freebsd-ports-graphics-c4d228e708a8e145ed5455041d9f23c6071c2d88.tar.zst freebsd-ports-graphics-c4d228e708a8e145ed5455041d9f23c6071c2d88.zip |
- Rewrite pdfjoin to avoid bashisms
Submitted by: Eygene Ryabinkin
Diffstat (limited to 'print/pdfjam')
-rw-r--r-- | print/pdfjam/Makefile | 2 | ||||
-rw-r--r-- | print/pdfjam/files/patch-pdfjam-nobash | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/print/pdfjam/Makefile b/print/pdfjam/Makefile index 0ddbb62da9b..3dc4e81aa7d 100644 --- a/print/pdfjam/Makefile +++ b/print/pdfjam/Makefile @@ -7,7 +7,7 @@ PORTNAME= pdfjam PORTVERSION= 1.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print MASTER_SITES= http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/ \ http://www.it.ca/~paul/src/ diff --git a/print/pdfjam/files/patch-pdfjam-nobash b/print/pdfjam/files/patch-pdfjam-nobash new file mode 100644 index 00000000000..88659c45f3a --- /dev/null +++ b/print/pdfjam/files/patch-pdfjam-nobash @@ -0,0 +1,21 @@ +--- scripts/pdfjoin.orig 2009-08-21 14:49:42.000000000 +0400 ++++ scripts/pdfjoin 2009-08-21 14:53:57.000000000 +0400 +@@ -8,8 +8,16 @@ + echo "This is pdfjoin version ""$version" + ## + ## +-shopt -u xpg_echo ## mainly to cope with Mac OS 10.5 "Leopard" +- ## -- and this is why we need /bin/bash as interpreter ++## Inhibit interpretation of backslashed characters inside echo ++## arguments. Needed mainly to cope with Mac OS 10.5 "Leopard". ++ ++## This is why we need /bin/bash as interpreter; but do a check ++## if the interpretation is really here -- people on systems ++## with conformant /bin/sh might want to run this script ++## without Bash -- don't trouble them with 'shopt' stuff. ++if [ "`echo '\n'`" != '\n' ]; then ++ shopt -u xpg_echo ++fi + ## + ## + ## Relies on pdflatex and the 'pdfpages' package (version 0.2e |