SOURCES: vim-tutor-lessdeps.patch (NEW) - kill "which" dep from vi...

glen glen at pld-linux.org
Sun Mar 5 13:19:42 CET 2006


Author: glen                         Date: Sun Mar  5 12:19:42 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- kill "which" dep from vimtutor

---- Files affected:
SOURCES:
   vim-tutor-lessdeps.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/vim-tutor-lessdeps.patch
diff -u /dev/null SOURCES/vim-tutor-lessdeps.patch:1.1
--- /dev/null	Sun Mar  5 13:19:42 2006
+++ SOURCES/vim-tutor-lessdeps.patch	Sun Mar  5 13:19:37 2006
@@ -0,0 +1,25 @@
+--- ./src/vimtutor~	2005-12-30 03:36:48.000000000 +0200
++++ ./src/vimtutor	2006-03-05 14:16:46.590263101 +0200
+@@ -39,18 +39,11 @@
+ # remove the copy of the tutor on exit
+ trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
+ 
+-# Vim could be called "vim" or "vi".  Also check for "vim6", for people who
+-# have Vim 5.x installed as "vim" and Vim 6.0 as "vim6".
+-testvim=`which vim6 2>/dev/null`
+-if test -f "$testvim"; then
+-	VIM=vim6
++# Vim could be called "vim" or "vi".
++if [ -x /usr/bin/vim ]; then
++	VIM=vim
+ else
+-	testvim=`which vim`
+-	if test -f "$testvim"; then
+-		VIM=vim
+-	else
+-		VIM=vi
+-	fi
++	VIM=vi
+ fi
+ 
+ # Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
================================================================


More information about the pld-cvs-commit mailing list