File: 1005_simplify_ps2ascii.patch

package info (click to toggle)
ghostscript 10.05.1~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 93,508 kB
  • sloc: ansic: 908,895; python: 7,676; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 529; awk: 66; yacc: 18
file content (24 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Simplify ps2ascii
Author: наб <nabijaczleweli@nabijaczleweli.xyz>
Forwarded: no
Last-Update: 2024-03-03


--- a/lib/ps2ascii
+++ b/lib/ps2ascii
@@ -9,13 +9,6 @@
 # executable name set in the makefile
 GS_EXECUTABLE=gs
 
-trap "rm -f _temp_.err _temp_.out" 0 1 2 15
+trap "rm -f _temp_.err _temp_.out" EXIT HUP INT TERM
 
-OPTIONS="-q -dSAFER -sDEVICE=txtwrite"
-if ( test $# -eq 0 ) then
-    $GS_EXECUTABLE $OPTIONS -o - -
-elif ( test $# -eq 1 ) then
-    $GS_EXECUTABLE $OPTIONS -o - "$1"
-else
-    $GS_EXECUTABLE $OPTIONS -o "$2" "$1"
-fi
+"$GS_EXECUTABLE" -q -dSAFER -sDEVICE=txtwrite -o "${2:--}" "${1:--}"