--- ray/installib 2003/10/20 15:10:17 1.2 +++ ray/installib 2003/10/30 15:41:23 1.3 @@ -1,5 +1,5 @@ #!/bin/csh -f -# RCSid $Id: installib,v 1.2 2003/10/20 15:10:17 greg Exp $ +# RCSid $Id: installib,v 1.3 2003/10/30 15:41:23 greg Exp $ # # Install library files # @@ -22,16 +22,22 @@ if ( ! -d $ldir ) then goto again2 endif endif -if ( $ldir != $cwd/lib ) then - set d1=(`ls -id lib`) - set d2=(`ls -id $ldir`) - if ($d1[1] != $d2[1]) then - echo -n "Install library files now [n]? " - if ( "$<" =~ [yY]* ) then - echo -n "Copying library files to $ldir... " - (cd lib ; tar -cf - *) | (cd $ldir ; tar -xf -) - echo "Done." - endif +if (! -d lib) then + echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + echo "You forgot to install the auxiliary files overlay." + echo "Download rad3R6supp.tar.gz from http://www.radiance-online.org" + echo "and run 'installib' later manually, or ^C now." + echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" + exit +endif +set d1=(`ls -Lid lib`) +set d2=(`ls -Lid $ldir`) +if ($d1[1] != $d2[1]) then + echo -n "Install library files now [n]? " + if ( "$<" =~ [yY]* ) then + echo -n "Copying library files to $ldir... " + (cd lib ; tar -cf - *) | (cd $ldir ; tar -xf -) + echo "Done." endif - unset d1 d2 endif +unset d1 d2