14 echo 'Source already present'
15 echo 'Will only configure GMXRC'
17 echo 'Starting GROMACS installation'
18 echo '-----------------------------'
20 echo 'Unpacking archives...'
22 foreach fz
( $CORE $BNC $TST )
24 if ( -f $fz.taz
) then
25 cat $fz.taz |
uncompress -c |
tar xf
-
27 if ( -f $fz.tgz
) then
28 cat $fz.tgz |
gzip -d -c |
tar xf
-
30 if ( $fz == $CORE ) then
31 echo FATAL
, no
file $fz.tgz or
$fz.taz found
41 # Determine which CPUS are available
44 foreach i
( src
/makef
/Makefile.
* )
46 if ( ( $EXT != SGI
) && ( $EXT != def
) && ( $EXT != std
) && ( $EXT != no
) && ( $EXT != ruggr2
) && ( $EXT != ins
) && ( $EXT != ind
) ) then
47 setenv CPUS
"$CPUS"" ""$EXT"
52 echo ' Which CPU/Machine do you have ?'
53 echo '--------------------------------------------------------------------'
56 set desc
=`head -1 src/makef/Makefile.$cpu`
57 if ( "$desc" == "#" ) then
60 printf "%5s - %-26s" $cpu "$desc"
70 setenv MKPREFIX src
/makef
/Makefile
72 echo 'Please select the cpu that is appropriate'
74 if ( -f $MKPREFIX.
$cpu ) then
78 echo 'Give a short abbreviation for your CPU/Machine, eg. ibm'
83 if ( $cpmf == 1 ) then
84 cp $MKPREFIX.no
$MKPREFIX.
$cpu
85 echo 'I have created a file called ' $MKPREFIX.
$cpu
86 echo 'Please follow the instructions in the online readme.hmtl file'
90 echo 'GROMACS Cool Quote Installation'
91 echo '-------------------------------'
92 echo 'If you do *NOT* want cool quotes type No here'
98 echo 'Now you will be treated like a fast food addict'
102 echo Creating
$RC file
103 if ( -f $RC ) mv $RC $RC.bak
105 setenv PATHPREFIX
`pwd`
108 # Directories, edit to match your site, we assume
109 # users have a c-shell allways
112 # remove previous GROMACS environment, if present
113 source $PATHPREFIX/NOGMX -quiet
115 # This is were the sources are
116 setenv GMXHOME $PATHPREFIX
119 # If you support multiple machines then it's useful to
120 # have a switch statement here, which, depending on hostname
121 # point to the proper directories, and sets the GMXCPU variable
123 # For easy updating, it is also recommended to put you local
124 # stuff in the GMXRC.local file
125 # Don't forget the GMXCPU variable
127 setenv LOCAL_RC \$GMXHOME/GMXRC.local
128 if ( -f \$LOCAL_RC ) then
131 # Here are some defaults, if you have one machine, edit these
135 # Some directories that live below the root
136 setenv GMXBIN \$GMXHOME/bin/\$GMXCPU
137 setenv GMXLIB \$GMXHOME/top
140 # Default Graphics Font
146 setenv PATH "\$PATH":"\$GMXBIN"
149 if ( \$?LD_LIBRARY_PATH ) then
150 setenv LD_LIBRARY_PATH "\$LD_LIBRARY_PATH":\$GMXHOME/lib/\$GMXCPU
152 setenv LD_LIBRARY_PATH \$GMXHOME/lib/\$GMXCPU
154 if ( \$?MANPATH ) then
155 setenv MANPATH "\$MANPATH":\$GMXHOME/man
157 setenv MANPATH /usr/man:\$GMXHOME/man
160 # Now finally, if you consider our Cool Quotes to be offensive
161 # you might consider commenting out the following line:
164 if ( -f \$GMXHOME/complete ) source \$GMXHOME/complete
169 echo 'Done, it is compile time now.'
170 echo 'Source GMXRC and read instructions in'
171 echo 'http://md.chem.rug.nl/~gmx/readme2.0.html'