]> git.pld-linux.org Git - packages/vim-syntax-nginx.git/commitdiff
move ftdetect to separate file
authorElan Ruusamäe <glen@delfi.ee>
Sun, 3 May 2015 18:53:11 +0000 (21:53 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 3 May 2015 18:53:24 +0000 (21:53 +0300)
ftdetect.vim [new file with mode: 0644]
vim-syntax-nginx.spec

diff --git a/ftdetect.vim b/ftdetect.vim
new file mode 100644 (file)
index 0000000..929b72d
--- /dev/null
@@ -0,0 +1 @@
+au BufNewFile,BufRead /etc/nginx/*.conf set filetype=nginx
index 31eb6e20f09f2d111a47bdd3ae323719faf05022..4c18009648b95b3805779bfa52819fbdd8702911 100644 (file)
@@ -8,6 +8,7 @@ License:        public domain
 Group:         Applications/Editors/Vim
 Source0:       http://www.vim.org/scripts/download_script.php?src_id=19394&/%{syntax}.vim
 # Source0-md5: 10395c7a028cc58030f82ab296f13ff3
+Source1:       ftdetect.vim
 URL:           http://www.vim.org/scripts/script.php?script_id=1886
 Requires:      vim-rt >= 4:7.2.170
 BuildArch:     noarch
@@ -25,9 +26,7 @@ Ten skrypt podświetla kod w pliku konfiguracyjnym nginx.
 %setup -qcT
 install -d syntax ftdetect
 cp -p %{SOURCE0} syntax/%{syntax}.vim
-cat > ftdetect/%{syntax}.vim <<EOF
-au BufNewFile,BufRead /etc/nginx/*.conf set filetype=%{syntax}
-EOF
+cp -p %{SOURCE1} ftdetect/%{syntax}.vim
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.091588 seconds and 4 git commands to generate.