Hello community,

here is the log from the commit of package less for openSUSE:Factory checked in 
at 2013-05-13 15:07:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/less (Old)
 and      /work/SRC/openSUSE:Factory/.less.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "less"

Changes:
--------
--- /work/SRC/openSUSE:Factory/less/less.changes        2013-03-25 
20:31:49.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.less.new/less.changes   2013-05-13 
15:07:21.000000000 +0200
@@ -1,0 +2,11 @@
+Mon May  6 20:20:03 UTC 2013 - [email protected]
+
+- make sure that -R or --RAW-CONTROL-CHARS is set in LESS
+  environment variable
+
+-------------------------------------------------------------------
+Mon May  6 13:23:33 UTC 2013 - [email protected]
+
+- add support for colordiff in lessopen.sh
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lessopen.sh ++++++
--- /var/tmp/diff_new_pack.ttz3Bm/_old  2013-05-13 15:07:22.000000000 +0200
+++ /var/tmp/diff_new_pack.ttz3Bm/_new  2013-05-13 15:07:22.000000000 +0200
@@ -105,6 +105,35 @@
                        # assuming ls is always available
                        ls -lh "$TMPF_pre" >"$TMPF" 2>/dev/null
                        ;;
+               *diff\ output*)
+                       # I haven't found way, to set less -R from this script
+                       # so check, if '-R' or '--RAW-CONTROL-CHARS' is set in 
environment
+                       R_NOT_SET=true
+                       for i in $LESS; do
+                               if [ "${i:0:1}" = "-" ]; then
+                                       if [ "${i:1:1}" = "-" ]; then
+                                               if [ "$i" = --RAW-CONTROL-CHARS 
]; then
+                                                       R_NOT_SET=false
+                                                       break
+                                               else
+                                                       continue
+                                               fi
+                                       else
+                                               for j in `seq 1 $((${#i} - 1 
))`; do
+                                                       if [ "${i:j:1}" = R ]; 
then
+                                                               R_NOT_SET=false
+                                                               break
+                                                       fi
+                                               done
+                                       fi
+                               fi
+                       done
+                       # if we have -R and colordiff, we can continue
+                       if [ $R_NOT_SET = false ] && \
+                               [ -x "`which colordiff 2>/dev/null`" ]; then
+                       colordiff < "$TMPF_pre" | cat > "$TMPF" 2>/dev/null
+                       else TMPF="$TMPF_pre"; fi
+                       ;;
                *)
                        if [ "$LESS_ADVANCED_PREPROCESSOR" = "yes" ]; then
                                case ${type#"$TMPF_pre": } in

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to