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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
#!/bin/sh
echo "starting DQS 3.1.8 installation"
echo " The first step is to identify the system "
echo " which will be used for this installation"
echo " "
echo " "
cd SRC
rm -f config.cache
echo "if a GNU cc compiler is present it will be used "
echo -n "by default. Do you wish to use gcc? (Y or n) "
read ans
if test -z "$ans"
then
ans="Y"
fi
if [ $ans = Y ]
then
./configure
elif [ $ans = y ]
then
./configure
elif [ $ans = N ]
then
CC=cc ./configure
elif [ $ans = n ]
then
CC=cc ./configure
else
echo "please answer y/n"
exit -1
fi
if [ $? -ne 0 ]
then
echo "GNU configuration failed, exiting INSTALL"
exit 1
fi
echo " "
cd ../CONFIG
make clean
make
if [ $? -ne 0 ]
then
echo "The attempt to make DQS config failed, exiting INSTALL"
exit 1
fi
echo "****************0"
echo " "
./config
echo ">$?<"
if [ $? -ne 0 ]
then
echo "DQS config failed, exiting"
exit 1
fi
echo "****************1"
cd ..
echo " "
make dirs
echo ">$?<"
if [ $? -gt 1 ]
then
echo "Make Directories failed, exiting"
exit 1
fi
echo "****************2"
make
if [ $? -ne 0 ]
then
echo "Make operation for DQS source failed, exiting"
exit 1
fi
echo "****************3"
echo " "
echo "we're done with basic installation "
echo " "
make installbin
if [ $? -ne 0 ]
then
echo "Installation of binaries failed, exiting"
exit 1
fi
echo "****************4"
make installconf
if [ $? -ne 0 ]
then
echo "Installation of configuration files failed, exiting"
exit 1
fi
echo " "
echo " INSTALL complete"
echo " To complete installation make the designated changes "
echo " in the /etc/services directory "
echo " see CONFIG/addservice.sh"
|