Skip to content

Commit db92da1

Browse files
committed
move ftdetect to separate file
1 parent 26ddc23 commit db92da1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ftdetect.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
au BufNewFile,BufRead *.vcl setf vcl

vim-syntax-vcl.spec

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Release: 1
66
License: GPL v2
77
Group: Applications/Editors/Vim
88
Source0: vcl.vim
9+
Source1: ftdetect.vim
910
URL: http://git.pld-linux.org/packages/vim-syntax-vcl/
1011
Requires: vim-rt >= 4:7.2.170
1112
BuildArch: noarch
@@ -26,11 +27,8 @@ fi
2627
%install
2728
rm -rf $RPM_BUILD_ROOT
2829
install -d $RPM_BUILD_ROOT%{_vimdatadir}/{syntax,ftdetect}
29-
cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_vimdatadir}/syntax
30-
31-
cat > $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/%{syntax}.vim <<-EOF
32-
au BufNewFile,BufRead *.vcl setf %{syntax}
33-
EOF
30+
cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_vimdatadir}/syntax/%{syntax}.vim
31+
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/%{syntax}.vim
3432

3533
%clean
3634
rm -rf $RPM_BUILD_ROOT

0 commit comments

Comments
 (0)