[packages/vim-syntax-nginx] move ftdetect to separate file
glen
glen at pld-linux.org
Sun May 3 20:53:40 CEST 2015
commit f2d68fce6ec51b000dc2a9d51dcc7a36ab098ce6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 3 21:53:11 2015 +0300
move ftdetect to separate file
ftdetect.vim | 1 +
vim-syntax-nginx.spec | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vim-syntax-nginx.spec b/vim-syntax-nginx.spec
index 31eb6e2..4c18009 100644
--- a/vim-syntax-nginx.spec
+++ b/vim-syntax-nginx.spec
@@ -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
diff --git a/ftdetect.vim b/ftdetect.vim
new file mode 100644
index 0000000..929b72d
--- /dev/null
+++ b/ftdetect.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead /etc/nginx/*.conf set filetype=nginx
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vim-syntax-nginx.git/commitdiff/f2d68fce6ec51b000dc2a9d51dcc7a36ab098ce6
More information about the pld-cvs-commit
mailing list