SHA256
1
0
forked from pool/gswrap

Handle -o option as well

OBS-URL: https://build.opensuse.org/package/show/Printing/gswrap?expand=0&rev=14
This commit is contained in:
Dr. Werner Fink 2021-09-20 07:42:09 +00:00 committed by Git OBS Bridge
parent 673a3e3a6f
commit eb26033a50
3 changed files with 17 additions and 2 deletions

10
gswrap
View File

@ -71,6 +71,16 @@ do
-dSAFER) -dSAFER)
let safer++ 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=*) -sOutputFile=*)
case "${arg#-sOutputFile=}" in case "${arg#-sOutputFile=}" in
%stdout%|%stderr%|%stdout|%stderr|-|"") %stdout%|%stderr%|%stdout|%stderr|-|"")

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 20 07:40:46 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Map -o with its argument to -sOutputFile= (boo#1190614)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 7 14:06:36 UTC 2020 - Dr. Werner Fink <werner@suse.de> Wed Oct 7 14:06:36 UTC 2020 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package gswrap # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -31,7 +31,7 @@ Requires: sed
BuildRequires: sed BuildRequires: sed
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun):update-alternatives
BuildArch: noarch BuildArch: noarch
%define debug_package %nil %define debug_package %nil