Tagged files with gromacs 3.0 header
[alexxy/gromacs.git] / src / mkcompl
1 #!/bin/csh -f
2
3 set out = $GMXHOME/complete
4 set dir = $cwd
5
6 echo Generating tcsh completions
7
8 if ( -f $out) then
9   cd $GMXHOME
10   mv complete \#complete\#
11 endif
12 touch $out
13
14 cd $GMXHOME/bin/$GMXCPU 
15 set PROGRAMS = [a-z]*
16 cd $dir
17
18 echo "if ( "'$shell'" == /bin/tcsh ) then" >> $out
19
20 foreach program ( $PROGRAMS )
21   if ( ( $program != "average" ) && ( $program != "luck" ) && ( $program != mdrun ) && ( $program != nmrun ) && ( $program != xmdrun )) then
22     $GMXHOME/bin/$GMXCPU/$program -man completion >& /dev/null
23     cat $program.completion >> $out
24     \rm $program.completion
25   endif
26 end
27
28 echo "endif" >> $out
29
30 #last line