summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulij Andreevich Lesov <yalesov@gmail.com>2016-07-05 02:59:45 -0500
committerAdam Stankiewicz <sheerun@sher.pl>2016-07-05 09:59:45 +0200
commitbd824d94075fbb2813394ec30c51e3adebb697f8 (patch)
tree611ad3d85ec0d376eafa7ac4fdbbe09decdc637d
parentc3233deb70b81b2e9be03b548e4593bad9dadd11 (diff)
downloadvim-polyglot-bd824d94075fbb2813394ec30c51e3adebb697f8.tar.gz
vim-polyglot-bd824d94075fbb2813394ec30c51e3adebb697f8.zip
readability: add newline and comment to generated ftdetect file (#142)
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index e59735a2..c3a3b5ba 100755
--- a/build
+++ b/build
@@ -75,7 +75,7 @@ copy_dir() {
}
concat_ftdetect() {
- cat ftdetect/* | grep -E '^[^"]' > tmp/polyglot.vim
+ for f in ftdetect/*; do (echo '" '"$f"; cat "${f}"; echo) >> tmp/polyglot.vim; done
rm -f ftdetect/*
mv tmp/polyglot.vim ftdetect/
}