Subj : vim patches To : All From : tony summerfelt Date : Sun Nov 11 2001 08:42 am if you've ever applied a vim patch out of order (easy to make a mistake, it was 93 patches last time i looked. this quickie perl program will help. just put it and all your patches (as you get them) to the top level source tree for vim6 (on my system that's: /usr/local/src/vim60) and run it like: vimpatch.pl 25 no need for a leading '0' #!/usr/bin/perl die "no patch number given on command line" if @ARGV==0; mkdir "./patches", 0755 if ! -d "./patches"; $basepatch="6.0."; $vimext=$vimpatch="@ARGV[0]"; $vimpatch="0".$vimpatch while(length($vimpatch)<3); $patchlevel=$basepatch.$vimpatch; while (-e "./$patchlevel") { print "applying patch: $patchlevel\n"; system "patch -p0 <$patchlevel" if ! -e "./patches/$patchlevel"; rename "./$patchlevel", "./patches/$patchlevel"; $vimpatch=++$vimext; $vimpatch="0".$vimpatch while(length($vimpatch)<3); $patchlevel=$basepatch.$vimpatch; } ..t .... telnet://ventedspleen.dyndns.org --- GoldED/SuSE 3.0.1-os1+ * Origin: ...the vented spleen - kingston, on (613) 544-9332 (1:249/139) .