summaryrefslogtreecommitdiff
path: root/comms/pilotmgr/patches/patch-ae
blob: a4cf12ba56b313713b16f7b12b46b1709e30cfec (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
$NetBSD: patch-ae,v 1.1 2005/02/13 20:36:11 tron Exp $

--- Setup.orig	1999-03-24 23:00:00.000000000 +0000
+++ Setup	2005-02-13 20:34:12.000000000 +0000
@@ -36,50 +36,11 @@
 read foo
 
 VERS="5.003"
-PERL=
-
-echo "Locating Perl 5..."
-for dir in `echo $PATH | sed -e 's/:/ /g'`
-do
-	for cmd in perl5 perl
-	do
-		if [ -n "$dir" -a -x "$dir/$cmd" ]
-		then
-			MAYBE=`$dir/$cmd -e 'print $^X'`
-	
-			if [ "$MAYBE" != "" ]
-			then
-				`$MAYBE -e "eval{require $VERS}; \
-					    exit 0 if \\$@; exit 1"`
-			fi
-
-			if [ $? -eq 1 ]
-			then
-				PERL=$MAYBE
-				break 2
-			fi
-		fi
-	done
-done
-
-# Now, either we've found the right version of Perl and we 
-# can continue, or we haven't and we should fail.
-#
-
-if [ -z "$PERL" ]
-then
-	cat<<EOF
-Setup was unable to locate an appropriate version of
-Perl from your path.  You need to have Perl v5.003 or
-later in your path for PilotManager to work.
-EOF
-	exit 1;
-fi
 
 echo "Perl 5 found [at $PERL]"
 echo "Please wait..."
 
-cat > /tmp/pmgr-setup.pl <<EOF
+cat > ${WRKDIR}/pmgr-setup.pl <<EOF
 
 use Config;
 
@@ -212,5 +173,5 @@
 
 EOF
 
-$PERL /tmp/pmgr-setup.pl
+$PERL ${WRKDIR}/pmgr-setup.pl