1 | #----------------------------------------------------------- |
---|
2 | # Copyright Christian Arnault LAL-Orsay CNRS |
---|
3 | # arnault@lal.in2p3.fr |
---|
4 | # Modified by garonne@lal.in2p3.fr |
---|
5 | # Modified by Grigory Rybkin |
---|
6 | # See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
7 | #----------------------------------------------------------- |
---|
8 | |
---|
9 | [ -z "${ARGC-}" ] && return |
---|
10 | |
---|
11 | function cmt_macros { reply=(`cmt -quiet show macro_names`)}; \ |
---|
12 | function cmt_actions { reply=(`cmt -quiet show action_names`)}; \ |
---|
13 | function cmt_aliases { reply=(`cmt -quiet show alias_names`)}; \ |
---|
14 | function cmt_sets { reply=(`cmt -quiet show set_names`)}; \ |
---|
15 | function cmt_constituents { reply=(`cmt -quiet show constituent_names`) }; \ |
---|
16 | function cmt_fragments { reply=(`cmt -quiet show fragments | sed 's#.*/fragments/##'`)}; \ |
---|
17 | function cmt_default_path { d=`dirname ${CMTROOT}`; reply=(`dirname ${d}`) }; \ |
---|
18 | function cmt_patterns { reply=(`cmt -quiet show pattern_names`) }; \ |
---|
19 | function cmt_make { reply=(`cmt -quiet show constituent_names` `cmt -quiet show groups` check all binclean help) }; \ |
---|
20 | compctl -x 'p[1]' -k "(broadcast,build,check,check_files,checkout,co,cleanup,config,create,create_project,expand,filter,help,lock,relocate,remove,run,setup,show,system,unlock,version ${CVSROOT:+,cvstags,cvsbranches,cvssubpackages,cvssubprojects})" - \ |
---|
21 | 'c[-1,make]' -K cmt_make - \ |
---|
22 | 'w[1,broadcast] S[-]' -k '(-begin=,-select=,-exclude=,-local,-global,-depth=)' - \ |
---|
23 | 'w[1,broadcast],w[1,run]' -c - \ |
---|
24 | 's[build],c[-1,build]' -k '(CMT_pacman, constituent_makefile,constituents_makefile,dependencies,library_links,make_setup,msdev,os9_makefile,prototype,readme,tag_makefile,temporary_name,triggers,win_makefile)' - \ |
---|
25 | 'w[1,build] c[-1,constituent_makefile]' -K cmt_constituents - \ |
---|
26 | 'w[1,build] c[-1,triggers]' -K cmt_constituents - \ |
---|
27 | 'c[-1,check]' -k '(configuration,files,version)' - \ |
---|
28 | 'C[-1,*files],C[-2,*files]' -f - \ |
---|
29 | 'w[1,create] p[2]' -X '> give package name' - \ |
---|
30 | 'w[1,create] p[3]' -X '> give version tag' - \ |
---|
31 | 'w[1,create] p[4]' -X '> give a path if not created from current path' - \ |
---|
32 | 'c[-1,expand]' -k '(model)' - \ |
---|
33 | 'w[1,remove] p[2]' -X '> library_links or give package name' - \ |
---|
34 | 'w[1,remove] p[3]' -X '> give version tag' - \ |
---|
35 | 'w[1,remove] p[4]' -X '> give a path if not located from the current path ' - \ |
---|
36 | 's[show],c[-1,show]' -k '(action,action_names,action_value,actions,alias,alias_names,alias_value,aliases,all_tags,applied_patterns,author,branches,clients,cmtpath_patterns,constituent,constituent_names,constituents,container,cycles,fragment,fragments,groups,include_dirs,language,languages,macro,macro_names,macro_value,macros,manager,packages,path,pattern,patterns,projects,project_author,pwd,set,set_names,set_value,sets,strategies,tags,use_paths,uses,versions)' - \ |
---|
37 | 'w[1,show] c[-1,constituent]' -K cmt_constituents - \ |
---|
38 | 'w[1,show] c[-1,fragment]' -K cmt_fragments - \ |
---|
39 | 'w[1,show] c[-1,action]' -K cmt_actions - \ |
---|
40 | 'w[1,show] c[-1,action_value]' -K cmt_actions - \ |
---|
41 | 'w[1,show] c[-1,alias]' -K cmt_aliases - \ |
---|
42 | 'w[1,show] c[-1,alias_value]' -K cmt_aliases - \ |
---|
43 | 'w[1,show] c[-1,macro]' -K cmt_macros - \ |
---|
44 | 'w[1,show] c[-1,macro_value]' -K cmt_macros - \ |
---|
45 | 'w[1,show] c[-1,pattern]' -K cmt_patterns - \ |
---|
46 | 'w[1,show] c[-1,set]' -K cmt_sets - \ |
---|
47 | 'w[1,show] c[-1,set_value]' -K cmt_sets - \ |
---|
48 | 'w[1,co] s[-],w[1,checkout] s[-]' -k '(l R r C i vd d o requirements no_config rs -help)' - \ |
---|
49 | 'c[-1,-r]' -X 'give a CVS tag' - \ |
---|
50 | 'C[-1,(-vd|-d)]' -/ -X 'give a directory name' - \ |
---|
51 | 'c[-1,-o]' -X 'give an offset in the CVS repository' - \ |
---|
52 | 'c[-1,-requirements]' -f - \ |
---|
53 | 'c[-1,co],c[-1,checkout]' -X 'give package name' - \ |
---|
54 | -- + cmt.exe |
---|