SOURCES: vim-tutor-lessdeps.patch - update to 7.1.303
glen
glen at pld-linux.org
Thu May 29 21:25:34 CEST 2008
Author: glen Date: Thu May 29 19:25:34 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- update to 7.1.303
---- Files affected:
SOURCES:
vim-tutor-lessdeps.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/vim-tutor-lessdeps.patch
diff -u SOURCES/vim-tutor-lessdeps.patch:1.2 SOURCES/vim-tutor-lessdeps.patch:1.3
--- SOURCES/vim-tutor-lessdeps.patch:1.2 Mon Jul 23 10:55:20 2007
+++ SOURCES/vim-tutor-lessdeps.patch Thu May 29 21:25:29 2008
@@ -1,28 +1,30 @@
---- vim71/src/vimtutor.orig 2007-07-23 10:39:15.051255564 +0200
-+++ vim71/src/vimtutor 2007-07-23 10:41:17.038772376 +0200
-@@ -39,23 +39,8 @@
- # remove the copy of the tutor on exit
- trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
+--- vim71/src/vimtutor~ 2008-05-29 22:14:57.000000000 +0300
++++ vim71/src/vimtutor 2008-05-29 22:24:29.118736307 +0300
+@@ -9,14 +9,12 @@
+ # When this fails or no argument was given, it tries using 'v:lang'
+ # When that also fails, it uses the English version.
-# Vim could be called "vim" or "vi". Also check for "vimN", for people who
-# have Vim installed with its version number.
-# We anticipate up to a future Vim 8 version :-).
-seq="vim vim8 vim75 vim74 vim73 vim72 vim71 vim70 vim7 vim6 vi"
--for i in $seq; do
-- testvim=`which $i 2>/dev/null`
-- if test -f "$testvim"; then
-- VIM=$i
-- break
-- fi
--done
--
--# When no Vim version was found fall back to "vim", you'll get an error message
--# below.
--if test -z "$VIM"; then
-- VIM=vim
--fi
+# Vim could be called "vim" or "vi".
-+[ -x /usr/bin/vim ] && VIM=vim || VIM=vi
++seq="/usr/bin/vim /bin/vi"
+ if test "$1" = "-g"; then
+ # Try to use the GUI version of Vim if possible, it will fall back
+ # on Vim if Gvim is not installed.
+- seq="gvim gvim8 gvim75 gvim74 gvim73 gvim72 gvim71 gvim70 gvim7 gvim6 $seq"
++ seq="/usr/bin/gvim /usr/bin/gvim.athena /usr/bin/gvim.gnome /usr/bin/gvim.gtk /usr/bin/gvim.motif $seq"
+ shift
+ fi
- # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
- # The script tutor.vim tells Vim which file to copy
+@@ -53,8 +51,7 @@
+ trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
+
+ for i in $seq; do
+- testvim=`which $i 2>/dev/null`
+- if test -f "$testvim"; then
++ if test -x "$i"; then
+ VIM=$i
+ break
+ fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/vim-tutor-lessdeps.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list