1
0
Files
source-highlight/use-lessopen.patch
Martin Pluskal 925c50cd60 Accepting request 367308 from home:fcrozat:branches:devel:tools
- Add use-lessopen.patch: use lessopen.sh instead of lesspipe in
  src-hilite-lesspipe.sh, since our less package ships with
  lessopen.sh.

OBS-URL: https://build.opensuse.org/request/show/367308
OBS-URL: https://build.opensuse.org/package/show/devel:tools/source-highlight?expand=0&rev=27
2016-03-07 12:48:02 +00:00

14 lines
678 B
Diff

Index: source-highlight-3.1.8/src/src-hilite-lesspipe.sh.in
===================================================================
--- source-highlight-3.1.8.orig/src/src-hilite-lesspipe.sh.in 2015-03-28 17:24:29.000000000 +0100
+++ source-highlight-3.1.8/src/src-hilite-lesspipe.sh.in 2016-03-07 10:30:18.229292034 +0100
@@ -7,7 +7,7 @@
*Makefile|*makefile)
source-highlight --failsafe -f esc --lang-def=makefile.lang --style-file=esc.style -i "$source" ;;
*.tar|*.tgz|*.gz|*.bz2|*.xz)
- lesspipe "$source" ;;
+ lessopen.sh "$source" ;;
*) source-highlight --failsafe --infer-lang -f esc --style-file=esc.style -i "$source" ;;
esac
done