From a86193d88edda899dd9859c21554fd6e17cdcb3e Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 14 Apr 2015 12:28:31 +0200 Subject: Remove runtime/tools/ #2426 This directory contains old (at least 10+ years) scripts that mainly filter output of other old programs to make them conformant with an 'errorformat' from 10+ years ago. --- runtime/tools/vimspell.sh | 55 ----------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100755 runtime/tools/vimspell.sh (limited to 'runtime/tools/vimspell.sh') diff --git a/runtime/tools/vimspell.sh b/runtime/tools/vimspell.sh deleted file mode 100755 index d336fe6c31..0000000000 --- a/runtime/tools/vimspell.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# -# Spell a file & generate the syntax statements necessary to -# highlight in vim. Based on a program from Krishna Gadepalli -# . -# -# I use the following mappings (in .vimrc): -# -# noremap :so `vimspell.sh %` -# noremap :syntax clear SpellErrors -# -# Neil Schemenauer -# March 1999 -# updated 2008 Jul 17 by Bram -# -# Safe method for the temp file by Javier Fernández-Sanguino_Peña - -INFILE=$1 -tmp="${TMPDIR-/tmp}" -OUTFILE=`mktemp -t vimspellXXXXXX || tempfile -p vimspell || echo none` -# If the standard commands failed then create the file -# since we cannot create a directory (we cannot remove it on exit) -# create a file in the safest way possible. -if test "$OUTFILE" = none; then - OUTFILE=$tmp/vimspell$$ - [ -e $OUTFILE ] && { echo "Cannot use temporary file $OUTFILE, it already exists!"; exit 1 ; } - (umask 077; touch $OUTFILE) -fi -# Note the copy of vimspell cannot be deleted on exit since it is -# used by vim, otherwise it should do this: -# trap "rm -f $OUTFILE" 0 1 2 3 9 11 13 15 - - -# -# local spellings -# -LOCAL_DICT=${LOCAL_DICT-$HOME/local/lib/local_dict} - -if [ -f $LOCAL_DICT ] -then - SPELL_ARGS="+$LOCAL_DICT" -fi - -spell $SPELL_ARGS $INFILE | sort -u | -awk ' - { - printf "syntax match SpellErrors \"\\<%s\\>\"\n", $0 ; - } - -END { - printf "highlight link SpellErrors ErrorMsg\n\n" ; - } -' > $OUTFILE -echo "!rm $OUTFILE" >> $OUTFILE -echo $OUTFILE -- cgit