(file) Return to Configure CVS log (file) (dir) Up to [Pegasus] / pegasus

 1 konrad.r 1.1 #! /bin/sh
 2              
 3              source_dir=`pwd`
 4              
 5              if [ -f "config.status" ]; then
 6              	. config.status
 7              fi
 8              
 9              if [ "$#" -gt 0 ]; then
10              	echo "Usage: ./Configure"
11              	exit 1
12              fi
13              
14              echo -n "Where OpenPegasus sources are located [ $source_dir ] "
15              read input
16              if [ -z "$input" ]; then
17              	input=$source_dir
18              fi
19              
20              source_dir=$input
21              
22 konrad.r 1.1 build_dir=$source_dir/BUILD
23              echo -n "Where OpenPegasus should be built [ $build_dir ] "
24              read input
25              if [ -z "$input" ]; then
26              	input=$build_dir
27              fi
28              build_dir=$input
29              
30              install_dir="$build_dir/install"
31              binaries_dir="$build_dir/binaries"
32              
33              mkdir -p $install_dir
34              mkdir -p $binaries_dir
35              
36              system=`uname -s` 
37              machine=`uname -m`
38              
39              case "$system:$machine" in
40              	AIX:*)
41              	  platform="AIX_RS_IBMCXX"
42              	  ;;
43 konrad.r 1.1 	HP-UX:*)
44              	  echo "Options are: HPUX_ACC HPUX_IA64_ACC HPUX_PARISC_ACC"
45              	  echo -n "Please enter your platform: "
46              	  read input
47              	  platform=$input
48              	  ;;
49              	Linux:i686)
50              	  platform="LINUX_IX86_GNU"
51              	  ;;
52              	Linux:i486)
53              	  platform="LINUX_IX86_GNU"
54              	  ;;
55              	Linux:ppc64)
56              	  platform="LINUX_IX86_GNU"
57              	  ;;
58              	Linux:ppc)
59              	  platform="LINUX_PPC_GNU"
60              	  ;;
61              	Linux:*)
62              	  platform="LINUX_PPC_GNU"
63              	  ;;
64 konrad.r 1.1 	*)
65              	  platform="Unknown"
66              	  ;;
67              esac
68              	
69              echo -n "Determined that your platform is "
70              echo $platform
71              
72              echo "Enter a new platform if incorrect, otherwise press Enter [ $platform ] "
73              read input
74              if [ -z "$input" ]; then
75              	input=$platform
76              fi
77              
78              platform=$input
79              
80              echo "source_dir=$source_dir" > config.status
81              echo "install_dir=$install_dir" >> config.status
82              echo "binaries_dir=$binaries_dir" >> config.status
83              echo "platform=$platform" >> config.status	
84              
85 konrad.r 1.1 sed -e "s%@SOURCEDIR@%$source_dir%g" \
86                  -e "s%@BINARIESDIR@%$binaries_dir%g" \
87                  -e "s%@INSTALLDIR@%$install_dir%g" \
88                  -e "s%@PLATFORM@%$platform%g" \
89                      rpm/lsb-pegasus.xml.in > rpm/lsb-pegasus.xml
90              
91              sed -e "s%@INSTALLDIR@%$install_dir%g" \
92              	rpm/lsb-pegasus.spec.in > rpm/lsb-pegasus.spec

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2