" Copyright (C) 2010-2015 Hong Xu

" This file is part of SingleCompile.

" SingleCompile is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
" the Free Software Foundation, either version 3 of the License, or
" (at your option) any later version.

" SingleCompile is distributed in the hope that it will be useful,
" but WITHOUT ANY WARRANTY; without even the implied warranty of
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
" GNU General Public License for more details.

" You should have received a copy of the GNU General Public License
" along with SingleCompile.  If not, see <http://www.gnu.org/licenses/>.

" check doc/SingleCompile.txt for more information

function! SingleCompile#templates#sh#Initialize()
    call SingleCompile#SetCompilerTemplate('sh', 'shell',
                \'Guess from shebang', 'sh', '', '')
    call SingleCompile#SetPriority('sh', 'shell', 10)
    call SingleCompile#SetPredo('sh', 'shell',
                \function('SingleCompile#PredoShell'))
    call SingleCompile#SetCompilerTemplate('sh', 'sh',
                \'Bourne Shell', 'sh', '', '')
    call SingleCompile#SetPriority('sh', 'sh', 80)
    call SingleCompile#SetCompilerTemplate('sh', 'bash',
                \'Bourne-Again Shell', 'bash', '', '')
    call SingleCompile#SetPriority('sh', 'bash', 90)
    call SingleCompile#SetCompilerTemplate('sh', 'ksh',
                \'Korn Shell', 'ksh', '', '')
    call SingleCompile#SetCompilerTemplate('sh', 'zsh',
                \'Z Shell', 'zsh', '', '')
    call SingleCompile#SetCompilerTemplate('sh', 'ash',
                \'Almquist Shell', 'ash', '', '')
    call SingleCompile#SetCompilerTemplate('sh', 'dash',
                \'Debian Almquist Shell', 'dash', '', '')
endfunction

"vim703: cc=78
"vim: et ts=4 tw=78 sw=4
