annotate runtime/compiler/rime_deployer.vim @ 35288:e0701cae97d4 default tip

Added tag v9.1.0448 for changeset b68266606e8434409a5b8fd532bc7d801b292737
author Christian Brabandt <cb@256bit.org>
date Wed, 29 May 2024 08:00:05 +0200
parents 9fdacba9c2ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34932
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim Compiler File
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: rime_deployer
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " URL: https://rime.im
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 " Latest Revision: 2024-04-09
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 if exists('b:current_compiler')
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 finish
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 endif
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 let b:current_compiler = 'rime_deployer'
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 let s:save_cpoptions = &cpoptions
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 set cpoptions&vim
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 " Android Termux
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 let s:prefix = getenv('PREFIX')
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17 if s:prefix == v:null
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 let s:prefix = '/usr'
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 endif
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 " Android, NixOS, GNU/Linux, BSD
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 for s:shared_data_dir in ['/sdcard/rime-data', '/run/current-system/sw/share/rime-data', '/usr/local/share/rime-data', s:prefix . '/share/rime-data']
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 if isdirectory(s:shared_data_dir)
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 break
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 endif
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 endfor
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 execute 'CompilerSet makeprg=rime_deployer\ --build\ %:p:h:S\' s:shared_data_dir
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 unlet s:prefix s:shared_data_dir
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 let &cpoptions = s:save_cpoptions
9fdacba9c2ec compiler(rime_deployer): include new compiler, use it for '*.custom.yaml' files (#14460)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30 unlet s:save_cpoptions