Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 106 lines (93 sloc) 1.911 kb
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
1 #!/bin/sh
2
3 cat <<EOF
4
e95a818 @jonjensen Copyright, date, tiny text changes.
jonjensen authored
5 Interchange Version 4.7.x Configuration
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
6
0b5651b @jonjensen Updated email addresses, URLs, and a few other minor things.
jonjensen authored
7 Copyright 1996-2001 Red Hat, Inc. <interchange@redhat.com>
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
8
f57382b @jonjensen Correctly print Perl versions >= 5.6.0.
jonjensen authored
9 Interchange was originally based on Vend 0.2 and 0.3
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
10 Copyright 1995, 1996 Andrew M. Wilcox <awilcox@maine.com>
11
e95a818 @jonjensen Copyright, date, tiny text changes.
jonjensen authored
12 Distributed under the GNU General Public License.
13 See the file LICENSE for license information.
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
14
15 EOF
16
17 for i in $*
18 do
19 case $i in
20 -[dD]) DEBUG=-D ;;
21 -[iI]) INSTALL=-I ;;
22 *)
23 esac
24 done
25
26 if test `echo -n test | wc -c` -eq 4
27 then F='-n'
28 E=
29 else F=
30 E='\c'
31 fi
32
33 TESTPERL=perl
34 while true
35 do
36 PERL=""
37 IFS="${IFS= }"
38 SAVEIFS="$IFS"
39 IFS="${IFS}:"
40 for TESTDIR in $PATH
41 do
42 test -z "$TESTDIR" && TESTDIR=.
43 if test -f $TESTDIR/$TESTPERL
44 then
45 PERL="$TESTDIR/$TESTPERL"
46 break
47 fi
48 done
49 IFS="$SAVEIFS"
50 while true
51 do
52 if test -n "$PERL"
f57382b @jonjensen Correctly print Perl versions >= 5.6.0.
jonjensen authored
53 then VER=`$PERL -e '((print $]), exit 1) unless $] >= 5.005 || $^V; print $^V ? sprintf("%vd", $^V) : $]'`
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
54 else false
55 fi
56 if [ $? -eq 0 ]
57 then
58 echo "Found Perl $VER as $PERL"
59 break 2
60 else
61 if test "$TESTPERL" = perl
62 then
63 TESTPERL=perl5
64 break
65 else
f57382b @jonjensen Correctly print Perl versions >= 5.6.0.
jonjensen authored
66 if [ -n "$VER" ]
67 then
68 echo "Found Perl $VER as $PERL"
69 echo "Perl version not high enough!"
70 VER=""
71 else
72 echo "Perl version not high enough or Perl not found."
73 fi
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
74 fi
75 fi
76
77 echo
f57382b @jonjensen Correctly print Perl versions >= 5.6.0.
jonjensen authored
78 echo "I need to know where the Perl interpreter resides (version 5.005 or higher)."
79 echo "It was not 'perl' or 'perl5', or it was not in your path. Please enter a full"
80 echo "path name, or just press <enter> to quit."
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
81 echo
f57382b @jonjensen Correctly print Perl versions >= 5.6.0.
jonjensen authored
82 echo $F "Where is your Perl, please? $E"
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
83 read PERL
84 if test -z "$PERL"
85 then exit 1
86 else
87 TESTPERL=$PERL
88 case $PERL in
89 [/]*) continue;;
90 *) break ;;
91 esac
92 fi
93 done
94 done
95
96 if test ! -f .cpan.tried
97 then
98 echo
e95a818 @jonjensen Copyright, date, tiny text changes.
jonjensen authored
99 echo "If you get a CPAN error, rerun the configuration and it should go away."
5550c3a @perusionmike Initial import of changed Challenger with UI instead of Minimate.
perusionmike authored
100 echo
101 fi
102
103 $PERL Makefile.PL
104 make
105 make test && make install
Something went wrong with that request. Please try again.