ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/installib
Revision: 1.4
Committed: Tue Jan 5 18:42:23 2016 UTC (8 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R1, rad5R3, HEAD
Changes since 1.3: +2 -2 lines
Log Message:
Updated instruction

File Contents

# Content
1 #!/bin/csh -f
2 # RCSid $Id: installib,v 1.3 2003/10/30 15:41:23 greg Exp $
3 #
4 # Install library files
5 #
6 again2:
7 echo -n "Where do you want the library files [/usr/local/lib/ray]? "
8 set ldir=$<
9 (echo $ldir) >/dev/null
10 if ( $status ) goto again2
11 set ldir=$ldir
12 if ( "$ldir" == "" ) then
13 set ldir=/usr/local/lib/ray
14 else if ( "$ldir" !~ /* ) then
15 echo "Directory must be relative to root, please reenter"
16 goto again2
17 endif
18 if ( ! -d $ldir ) then
19 mkdir $ldir
20 if ( $status ) then
21 echo "Cannot create directory, please reenter"
22 goto again2
23 endif
24 endif
25 if (! -d lib) then
26 echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
27 echo "You forgot to install the auxiliary files overlay."
28 echo "Download rad5R1supp.tar.gz from http://www.radiance-online.org"
29 echo "and run 'installib' later manually, or ^C now."
30 echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
31 exit
32 endif
33 set d1=(`ls -Lid lib`)
34 set d2=(`ls -Lid $ldir`)
35 if ($d1[1] != $d2[1]) then
36 echo -n "Install library files now [n]? "
37 if ( "$<" =~ [yY]* ) then
38 echo -n "Copying library files to $ldir... "
39 (cd lib ; tar -cf - *) | (cd $ldir ; tar -xf -)
40 echo "Done."
41 endif
42 endif
43 unset d1 d2