(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 konrad.r 1.2 machine=`uname -m | sed -e 's/\/[0-9,a-z,A-Z]*//'`
 38 konrad.r 1.1 
 39              case "$system:$machine" in
 40 konrad.r 1.2 	SunOS:*)
 41              	  #Check for GNU compiler
 42              	  if [ -e "`which gcc`" ]; then
 43              		platform="SOLARIS_SPARC_GNU";
 44              	  else
 45              		platform="SOLARIS_SPARC_CC";
 46              	  fi
 47              	  ;;
 48 konrad.r 1.1 	AIX:*)
 49              	  platform="AIX_RS_IBMCXX"
 50              	  ;;
 51 konrad.r 1.2 	HP-UX:ia64)
 52              	  platform="HPUX_IA64_ACC"
 53              	  ;;
 54              	HP-UX:9000)
 55              	  platform="HPUX_PARISC_ACC"
 56              	  ;;
 57 konrad.r 1.1 	HP-UX:*)
 58 konrad.r 1.2 	  platform="HPUX_ACC"
 59 konrad.r 1.1 	  ;;
 60              	Linux:i686)
 61              	  platform="LINUX_IX86_GNU"
 62              	  ;;
 63              	Linux:i486)
 64              	  platform="LINUX_IX86_GNU"
 65              	  ;;
 66              	Linux:ppc64)
 67              	  platform="LINUX_IX86_GNU"
 68              	  ;;
 69              	Linux:ppc)
 70              	  platform="LINUX_PPC_GNU"
 71              	  ;;
 72              	Linux:*)
 73              	  platform="LINUX_PPC_GNU"
 74              	  ;;
 75              	*)
 76              	  platform="Unknown"
 77              	  ;;
 78              esac
 79              	
 80 konrad.r 1.1 echo -n "Determined that your platform is "
 81              echo $platform
 82              
 83              echo "Enter a new platform if incorrect, otherwise press Enter [ $platform ] "
 84              read input
 85              if [ -z "$input" ]; then
 86              	input=$platform
 87              fi
 88              
 89              platform=$input
 90              
 91              echo "source_dir=$source_dir" > config.status
 92              echo "install_dir=$install_dir" >> config.status
 93              echo "binaries_dir=$binaries_dir" >> config.status
 94              echo "platform=$platform" >> config.status	
 95              
 96              sed -e "s%@SOURCEDIR@%$source_dir%g" \
 97                  -e "s%@BINARIESDIR@%$binaries_dir%g" \
 98                  -e "s%@INSTALLDIR@%$install_dir%g" \
 99                  -e "s%@PLATFORM@%$platform%g" \
100                      rpm/lsb-pegasus.xml.in > rpm/lsb-pegasus.xml
101 konrad.r 1.1 
102              sed -e "s%@INSTALLDIR@%$install_dir%g" \
103              	rpm/lsb-pegasus.spec.in > rpm/lsb-pegasus.spec

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2