72 |
|
goto again1 |
73 |
|
endif |
74 |
|
endif |
75 |
+ |
set inpath=0 |
76 |
+ |
foreach i ( $path ) |
77 |
+ |
if ( "$i" == "$idir" ) then |
78 |
+ |
set inpath=1 |
79 |
+ |
break |
80 |
+ |
endif |
81 |
+ |
end |
82 |
|
set rmake=$idir/rmake |
83 |
|
if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then |
84 |
|
goto gotrmake |
290 |
|
echo "Done." |
291 |
|
endif |
292 |
|
cd .. |
293 |
+ |
if (! $inpath ) then |
294 |
+ |
echo "" |
295 |
+ |
echo "Add $idir to the beginning of your execution path:" |
296 |
+ |
echo 'For C-shell users, put the following into ~/.cshrc' |
297 |
+ |
echo " set path=( $idir "'$path )' |
298 |
+ |
echo 'For Bourne shell users, put the following into $HOME/profile' |
299 |
+ |
echo " PATH=$idir"':$PATH' |
300 |
+ |
echo " export PATH" |
301 |
+ |
endif |
302 |
|
if (! -d /usr/tmp) then |
303 |
|
ln -s /tmp /usr/tmp |
304 |
|
if ($status) then |
305 |
|
echo "" |
306 |
|
echo "IMPORTANT: Execute 'sudo ln -s /tmp /usr/tmp'" |
291 |
– |
echo "" |
307 |
|
endif |
308 |
|
endif |
309 |
|
else |
314 |
|
make -f Rmakefile $* |
315 |
|
popd |
316 |
|
end |
302 |
– |
echo "Done." |
317 |
|
cd .. |
304 |
– |
endif |
318 |
|
foreach i ( $* ) |
319 |
|
if ( "$i" == clean ) then |
320 |
|
echo "Removing library archives..." |
321 |
|
rm -f src/lib/*.[ao] |
322 |
|
endif |
323 |
|
end |
324 |
+ |
echo "Done." |
325 |
+ |
endif |
326 |
|
exit 0 |