Commit f9c44031 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

.vim/spell/update.sh sorts and prunes the *.add files

parent 41a7a237
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
#!/bin/sh
for file in `dirname $0`/*.add; do
	ex -E -s -c ':mkspell %' -c ':q' $file
	mv "${file}" "${file}.tmp"
	sort -u "${file}.tmp" > "${file}"
	rm "${file}.tmp"
	ex -E -s -c ':mkspell %' -c ':q' "${file}"
done