File: installib

package info (click to toggle)
radiance 3R9+20080530-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 26,244 kB
  • ctags: 10,546
  • sloc: ansic: 105,887; csh: 3,558; tcl: 3,358; python: 875; makefile: 280; sh: 14
file content (43 lines) | stat: -rwxr-xr-x 1,134 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/csh -f
# RCSid $Id: installib,v 1.3 2003/10/30 15:41:23 greg Exp $
#
# Install library files
#
again2:
echo -n "Where do you want the library files [/usr/local/lib/ray]? "
set ldir=$<
(echo $ldir) >/dev/null
if ( $status ) goto again2
set ldir=$ldir
if ( "$ldir" == "" ) then
	set ldir=/usr/local/lib/ray
else if ( "$ldir" !~ /* ) then
	echo "Directory must be relative to root, please reenter"
	goto again2
endif
if ( ! -d $ldir ) then
	mkdir $ldir
	if ( $status ) then
		echo "Cannot create directory, please reenter"
		goto again2
	endif
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
endif
unset d1 d2