mystuff/graphics/sxiv/patches/patch-exec_key-handler

15 lines
501 B
Plaintext
Raw Normal View History

2023-01-10 11:45:28 +01:00
$OpenBSD: patch-exec_key-handler,v 1.1 2019/10/03 10:29:32 kn Exp $
Index: exec/key-handler
--- exec/key-handler.orig
+++ exec/key-handler
@@ -14,7 +14,7 @@
rotate() {
degree="$1"
- tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do
+ tr '\n' '\0' | xargs -0 readlink -f | sort | uniq | while read file; do
case "$(file -b -i "$file")" in
image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;;
*) mogrify -rotate "$degree" "$file" ;;