3 # NB: Put the finished completions in the gromacs-3.1/scripts directory.
6 echo "Error: provide the binary directory as first argument."
7 echo "Completions will be written in the current directory."
16 echo Generating completions
for csh
, bash and zsh
18 if ( -f $out.csh
) then
21 if ( -f $out.bash
) then
24 if ( -f $out.zsh
) then
28 touch $out.csh
$out.bash
$out.zsh
34 foreach program
( $PROGRAMS )
35 if ( ( -x $GMXBINDIR/$program ) && ( $program != "my_dssp" ) && ( $program != "average" ) && ( $program != "GMXRC" ) && ( $program != "completion.zsh" ) && ( $program != "completion.csh" ) && ( $program != "completion.bash" ) && ( $program != "luck" ) ) then
36 $GMXBINDIR/$program -man completion
>& /dev
/null
37 cat $program.completion-csh
>> $out.csh
38 cat $program.completion-bash
>> $out.bash
39 cat $program.completion-zsh
>> $out.zsh
40 \rm
$program.completion-csh
$program.completion-bash
$program.completion-zsh