Tweaked class comments in containerPanel
[ganymede.git] / configure
blob093135fe0658e5a2571c2fc5e5e801ee84e49a34
1 #!/bin/sh
3 # This is the bootstrapping configuration script for Ganymede. The
4 # only thing we count on to run this script is that /bin/sh works.
6 # Get enough information from the user to be able to find Perl 5 and
7 # run scripts/configurator.perl. We'll set a bunch of environment variables
8 # for configurator.perl to use to do its thing.
10 # Last Revision Changed: $Rev$
11 # Last Changed By: $Author$
12 # Last Mod Date: $Date$
13 # SVN URL: $HeadURL$
15 ###############################################################################
17 echo "Ganymede configure script"
18 echo
21 # Figure out how to do an echo without trailing newline
24 case "`echo 'x\c'`" in
25 'x\c') echo="echo -n" nnl= ;; # BSD
26 x) echo="echo" nnl="\c" ;; # Sys V
27 *) echo "$0 quitting: Can't set up echo." 1>&2; exit 1 ;;
28 esac
30 # Find the source files, if location was not specified.
32 # Try the directory containing this script, then its parent.
34 prog=$0
36 GROOTDIR=`echo $prog|sed 's%/[^/][^/]*$%%'`
37 # if the program name is the same as the srcdir name, we have no path
38 # set.. must be .
39 #test "x$GROOTDIR" = "x$prog" && GROOTDIR=.
40 #if test ! -d $GROOTDIR/build/src/classes; then
41 # echo "configure: error: can not find sources in $rootdir" 1>&2; exit 1;
42 #fi
43 export GROOTDIR
45 # Find perl (GPERL)
47 guessperl=`which perl`> /dev/null 2>&1
49 if `$guessperl $GROOTDIR/scripts/versiontest.pl > /dev/null 2>&1`; then
50 GPERL=$guessperl
51 else
52 $echo "Where is perl 5 installed? [$guessperl] ${nnl}"
54 read userperl
56 if test ! -z "$userperl"; then
57 GPERL=$userperl
58 else
59 GPERL=$guessperl
63 export GPERL
65 # Find java
67 guessjava=`which java`
68 guessjava=`dirname ${guessjava}`
70 $echo "What is the location of the directory where java is installed? [$guessjava] ${nnl}"
72 read userjava
74 if test ! -z "$userjava"; then
75 GJAVA=$userjava
76 else
77 GJAVA=$guessjava
80 export GJAVA
82 # Find ant
84 guessant=`which ant`
86 $echo "Where is Apache Ant located? [$guessant] ${nnl}"
88 read userant
90 if test ! -z "$userant"; then
91 GANT=$userant
92 else
93 GANT=$guessant
96 export GANT
98 $GPERL $GROOTDIR/scripts/configurator.perl