diff --git a/gswrap b/gswrap index bce8cca..c1d91b7 100644 --- a/gswrap +++ b/gswrap @@ -71,6 +71,16 @@ do -dSAFER) let safer++ ;; + -o) + if ((argc+1 >= ${#argv[@]})) + then + echo "GS: found -o without argument" 1>&2 + exit 1 + else + unset argv[argc] + argv[argc+1]=-sOutputFile=${argv[argc+1]} + fi + ;; -sOutputFile=*) case "${arg#-sOutputFile=}" in %stdout%|%stderr%|%stdout|%stderr|-|"") diff --git a/gswrap.changes b/gswrap.changes index bae4ed0..066ba1a 100644 --- a/gswrap.changes +++ b/gswrap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 20 07:40:46 UTC 2021 - Dr. Werner Fink + +- Map -o with its argument to -sOutputFile= (boo#1190614) + ------------------------------------------------------------------- Wed Oct 7 14:06:36 UTC 2020 - Dr. Werner Fink diff --git a/gswrap.spec b/gswrap.spec index 8f8ea13..4315bef 100644 --- a/gswrap.spec +++ b/gswrap.spec @@ -1,7 +1,7 @@ # # spec file for package gswrap # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,7 +31,7 @@ Requires: sed BuildRequires: sed BuildRequires: update-alternatives Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives BuildArch: noarch %define debug_package %nil