changed reading hint
[gromacs/adressmacs.git] / src / mkcompl
blob78f6cb228d704eb9aa1d2b47e8cf972eff8f0b4f
1 #!/bin/csh -f
3 set out = $GMXHOME/complete
4 set dir = $cwd
6 echo Generating tcsh completions
8 if ( -f $out) then
9 cd $GMXHOME
10 mv complete \#complete\#
11 endif
12 touch $out
14 cd $GMXHOME/bin/$GMXCPU
15 set PROGRAMS = [a-z]*
16 cd $dir
18 echo "if ( "'$shell'" == /bin/tcsh ) then" >> $out
20 foreach program ( $PROGRAMS )
21 if ( ( $program != "average" ) && ( $program != "luck" ) ) then
22 $GMXHOME/bin/$GMXCPU/$program -man completion >& /dev/null
23 cat $program.completion >> $out
24 \rm $program.completion
25 endif
26 end
28 echo "endif" >> $out
30 #last line