summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-19 20:05:43 +0000
committerKarl Berry <karl@freefriends.org>2023-10-19 20:05:43 +0000
commit6d180935353dd69a5bb220bf884281b5e7d5025a (patch)
treed6041f4ef7dcdd3dac11c98bb79847a39e8009d7 /Build/source
parentf1ef8665f759f9494401094abc2a306bdd151b3c (diff)
pdfjam (19oct23)
git-svn-id: svn://tug.org/texlive/trunk@68597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/pdfjam/pdfjam8
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam
index 04099e3917b..6f9da93d383 100755
--- a/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam
+++ b/Build/source/texk/texlive/linked_scripts/pdfjam/pdfjam
@@ -1,5 +1,5 @@
#!/bin/sh
-version=3.09
+version=3.10
#########################################################################
## ##
## pdfjam: A shell-script interface to the "pdfpages" LaTeX package ##
@@ -759,8 +759,9 @@ while test -n "${1}${2}"; do
*) ## if page spec needed, assume this is it;
## otherwise something is wrong
if test "$pageSpecAwaited" = true ; then
+ escapedFilePath=$(printf '%s' "$1" | sed -e 's#/#\\/#g')
fileSpec=$(printf "%s" "$fileSpec" | \
- sed "s/|awaited/|$1/g")
+ sed "s/|awaited/|${escapedFilePath}/g")
pageSpecAwaited=false
else
error_exit "no PDF/JPG/PNG file found at ${1}" \
@@ -783,8 +784,9 @@ while test -n "${1}${2}"; do
*) ## if page spec needed, assume this is it;
## otherwise something is wrong
if test "$pageSpecAwaited" = true ; then
+ escapedFilePath=$(printf '%s' "$1" | sed -e 's#/#\\/#g')
fileSpec=$(printf "%s" "$fileSpec" | \
- sed "s/|awaited/|$1/g")
+ sed "s/|awaited/|${escapedFilePath}/g")
pageSpecAwaited=false
else
error_exit "no PDF/JPG/PNG file found at ${1}" \