File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change
1
+ au BufNewFile ,BufRead *.vcl setf vcl
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Release: 1
6
6
License: GPL v2
7
7
Group: Applications/Editors/Vim
8
8
Source0: vcl.vim
9
+ Source1: ftdetect.vim
9
10
URL: http://git.pld-linux.org/packages/vim-syntax-vcl/
10
11
Requires: vim-rt >= 4:7.2.170
11
12
BuildArch: noarch
26
27
%install
27
28
rm -rf $RPM_BUILD_ROOT
28
29
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
34
32
35
33
%clean
36
34
rm -rf $RPM_BUILD_ROOT
You can’t perform that action at this time.
0 commit comments