--- ray/makeall 2003/08/30 08:22:47 1.9 +++ ray/makeall 2003/11/25 18:23:11 1.10 @@ -1,5 +1,5 @@ #!/bin/csh -f -# RCSid $Id: makeall,v 1.9 2003/08/30 08:22:47 schorsch Exp $ +# RCSid $Id: makeall,v 1.10 2003/11/25 18:23:11 greg Exp $ # # Make all the Radiance programs # @@ -72,6 +72,13 @@ if ( ! -d $idir/dev ) then goto again1 endif endif +set inpath=0 +foreach i ( $path ) + if ( "$i" == "$idir" ) then + set inpath=1 + break + endif +end set rmake=$idir/rmake if ( "`ls -tL $rmake $0 |& head -1`" == $rmake ) then goto gotrmake @@ -283,12 +290,20 @@ else echo "Done." endif cd .. +if (! $inpath ) then + echo "" + echo "Add $idir to the beginning of your execution path:" + echo 'For C-shell users, put the following into ~/.cshrc' + echo " set path=( $idir "'$path )' + echo 'For Bourne shell users, put the following into $HOME/profile' + echo " PATH=$idir"':$PATH' + echo " export PATH" +endif if (! -d /usr/tmp) then ln -s /tmp /usr/tmp if ($status) then echo "" echo "IMPORTANT: Execute 'sudo ln -s /tmp /usr/tmp'" - echo "" endif endif else @@ -299,13 +314,13 @@ foreach i ( $srcdirs ) make -f Rmakefile $* popd end -echo "Done." cd .. -endif foreach i ( $* ) if ( "$i" == clean ) then echo "Removing library archives..." rm -f src/lib/*.[ao] endif end +echo "Done." +endif exit 0