summaryrefslogtreecommitdiff
path: root/graphics/radiance/patches/patch-ac
blob: 84eccf491f1c48d0a8532e57d1d13f5fbe9e54c0 (plain)
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
$NetBSD: patch-ac,v 1.1.1.1 2005/02/16 22:17:33 jschauma Exp $

Make this script run non-interactively.

--- installib.orig	2003-10-31 12:11:57.000000000 -0500
+++ installib	2005-02-15 11:25:48.000000000 -0500
@@ -4,19 +4,15 @@
 # Install library files
 #
 again2:
-echo -n "Where do you want the library files [/usr/local/lib/ray]? "
-set ldir=$<
+set ldir=@WRKSRC@/builddir/lib
 (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
+	mkdir -p $ldir
 	if ( $status ) then
 		echo "Cannot create directory, please reenter"
 		goto again2
@@ -33,11 +29,7 @@
 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