home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / PDO / INSTALL < prev    next >
Encoding:
Text File  |  1996-10-25  |  30.0 KB  |  1,124 lines

  1. #!/bin/sh
  2. # Copyright 1994-1996, NeXT Software, Inc.  All Rights Reserved.
  3.  
  4. clear
  5.  
  6. PDO_OSVERS=`uname -r`
  7.  
  8. case `uname` in
  9. SunOS)
  10.     version=`echo $PDO_OSVERS | sed 's/\..*//'`
  11.     if [ $version = "5" ]; then
  12.     PDO_OSDIR=SOLARIS
  13.     PATH=/usr/5bin:/bin:/usr/bin:/usr/sbin:/usr/ucb:$PATH
  14.     GREPQUIETLY="/bin/egrep -s"
  15.     PSALL="/bin/ps -ef"
  16.     ECHO="/usr/ucb/echo -n"
  17.     NNL=
  18.     else
  19.     echo "*** Unsupported operating system: " `uname`
  20.     exit 1
  21.     fi
  22.     ;;
  23. HP-UX)
  24.     PDO_OSDIR=HP-UX
  25.     GREPQUIETLY="grep -q"
  26.     PSALL="/bin/ps -ef"
  27.     ECHO=echo
  28.     NNL="\c"
  29.     ;;
  30. *)
  31.     echo "*** Unsupported operating system: " `uname`
  32.     exit 1
  33.     ;;
  34. esac
  35.  
  36. PDO_INSTALLING=YES
  37.  
  38. PDO_DIR=`pwd`
  39.  
  40. if [ -f $PDO_DIR/$PDO_OSDIR/PDOUSER.TAR.Z ]; then
  41.     PDO_USER_PACKAGE=$PDO_DIR/$PDO_OSDIR/PDOUSER.TAR.Z
  42. elif [ -f $PDO_DIR/$PDO_OSDIR/pdouser.TAR.Z ]; then
  43.     PDO_USER_PACKAGE=$PDO_DIR/$PDO_OSDIR/pdouser.TAR.Z
  44. elif [ -f $PDO_DIR/PDOUSER.TAR.Z ]; then
  45.     PDO_USER_PACKAGE=$PDO_DIR/PDOUSER.TAR.Z
  46. elif [ -f $PDO_DIR/pdouser.TAR.Z ]; then
  47.     PDO_USER_PACKAGE=$PDO_DIR/pdouser.TAR.Z
  48. fi
  49. if [ -f $PDO_DIR/$PDO_OSDIR/PDODEV.TAR.Z ]; then
  50.     PDO_DEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/PDODEV.TAR.Z
  51. elif [ -f $PDO_DIR/$PDO_OSDIR/pdodev.TAR.Z ]; then
  52.     PDO_DEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/pdodev.TAR.Z
  53. elif [ -f $PDO_DIR/PDODEV.TAR.Z ]; then
  54.     PDO_DEV_PACKAGE=$PDO_DIR/PDODEV.TAR.Z
  55. elif [ -f $PDO_DIR/pdodev.TAR.Z ]; then
  56.     PDO_DEV_PACKAGE=$PDO_DIR/pdodev.TAR.Z
  57. fi
  58. if [ -f $PDO_DIR/$PDO_OSDIR/EOUSER.TAR.Z ]; then
  59.     PDO_EOUSER_PACKAGE=$PDO_DIR/$PDO_OSDIR/EOUSER.TAR.Z
  60. elif [ -f $PDO_DIR/$PDO_OSDIR/eouser.TAR.Z ]; then
  61.     PDO_EOUSER_PACKAGE=$PDO_DIR/$PDO_OSDIR/eouser.TAR.Z
  62. elif [ -f $PDO_DIR/EOUSER.TAR.Z ]; then
  63.     PDO_EOUSER_PACKAGE=$PDO_DIR/EOUSER.TAR.Z
  64. elif [ -f $PDO_DIR/eouser.TAR.Z ]; then
  65.     PDO_EOUSER_PACKAGE=$PDO_DIR/eouser.TAR.Z
  66. fi
  67. if [ -f $PDO_DIR/$PDO_OSDIR/EODEV.TAR.Z ]; then
  68.     PDO_EODEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/EODEV.TAR.Z
  69. elif [ -f $PDO_DIR/$PDO_OSDIR/eodev.TAR.Z ]; then
  70.     PDO_EODEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/eodev.TAR.Z
  71. elif [ -f $PDO_DIR/EODEV.TAR.Z ]; then
  72.     PDO_EODEV_PACKAGE=$PDO_DIR/EODEV.TAR.Z
  73. elif [ -f $PDO_DIR/eodev.TAR.Z ]; then
  74.     PDO_EODEV_PACKAGE=$PDO_DIR/eodev.TAR.Z
  75. fi
  76. if [ -f $PDO_DIR/$PDO_OSDIR/WOUSER.TAR.Z ]; then
  77.     PDO_WOUSER_PACKAGE=$PDO_DIR/$PDO_OSDIR/WOUSER.TAR.Z
  78. elif [ -f $PDO_DIR/$PDO_OSDIR/wouser.TAR.Z ]; then
  79.     PDO_WOUSER_PACKAGE=$PDO_DIR/$PDO_OSDIR/wouser.TAR.Z
  80. elif [ -f $PDO_DIR/WOUSER.TAR.Z ]; then
  81.     PDO_WOUSER_PACKAGE=$PDO_DIR/WOUSER.TAR.Z
  82. elif [ -f $PDO_DIR/wouser.TAR.Z ]; then
  83.     PDO_WOUSER_PACKAGE=$PDO_DIR/wouser.TAR.Z
  84. fi
  85. if [ -f $PDO_DIR/$PDO_OSDIR/WODEV.TAR.Z ]; then
  86.     PDO_WODEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/WODEV.TAR.Z
  87. elif [ -f $PDO_DIR/$PDO_OSDIR/wodev.TAR.Z ]; then
  88.     PDO_WODEV_PACKAGE=$PDO_DIR/$PDO_OSDIR/wodev.TAR.Z
  89. elif [ -f $PDO_DIR/WODEV.TAR.Z ]; then
  90.     PDO_WODEV_PACKAGE=$PDO_DIR/WODEV.TAR.Z
  91. elif [ -f $PDO_DIR/wodev.TAR.Z ]; then
  92.     PDO_WODEV_PACKAGE=$PDO_DIR/wodev.TAR.Z
  93. fi
  94. if [ -f $PDO_DIR/$PDO_OSDIR/LOCAL.TAR.Z ]; then
  95.     PDO_LOCAL_PACKAGE=$PDO_DIR/$PDO_OSDIR/LOCAL.TAR.Z
  96. elif [ -f $PDO_DIR/$PDO_OSDIR/local.TAR.Z ]; then
  97.     PDO_LOCAL_PACKAGE=$PDO_DIR/$PDO_OSDIR/local.TAR.Z
  98. elif [ -f $PDO_DIR/LOCAL.TAR.Z ]; then
  99.     PDO_LOCAL_PACKAGE=$PDO_DIR/LOCAL.TAR.Z
  100. elif [ -f $PDO_DIR/local.TAR.Z ]; then
  101.     PDO_LOCAL_PACKAGE=$PDO_DIR/local.TAR.Z
  102. fi
  103.  
  104. PDO_INSTALL_USER=YES
  105.  
  106. if [ x != x$PDO_AUTOMATIC_INSTALL ]; then
  107.     # Leave this feature undocumented for now; if the file
  108.     # is wrong, you may lose big time. Also, we may change
  109.     # the way things are done in the future, and we do not
  110.     # want any backwards compatibility issues.
  111.  
  112.     echo "Beginning automatic PDO install."
  113.  
  114.     . $PDO_AUTOMATIC_INSTALL
  115.  
  116. else
  117.     # Normal question and answer installation
  118.  
  119.     if [ x != x$PDO_WOUSER_PACKAGE ]; then
  120.     # Normal question and answer WOF installation
  121.     echo ""
  122.     echo "Welcome to the WebObjects installation program!"
  123.     echo ""
  124.     echo ""
  125.     PDO_PRODUCT=WebObjects
  126.     PDO_INSTALL_DIR=/opt/WOF/3.0
  127.     while [ x = x$PDO_WOF_LICENSE ]; do
  128.         echo ""
  129.         $ECHO "Enter serial number: " $NNL
  130.         read answer
  131.         case $answer in
  132.         AMX* | ANG* )
  133.         PDO_WOF_PRODUCT="WebObjects Pro Developer"
  134.         ;;
  135.         ANA* | ANE* )
  136.         PDO_WOF_PRODUCT="WebObjects Enterprise Developer"
  137.         ;;
  138.         AMY* | ANH* )
  139.         PDO_WOF_PRODUCT="WebObjects Pro Deployment"
  140.         ;;
  141.         ANB* | ANF* )
  142.         PDO_WOF_PRODUCT="WebObjects Enterprise Deployment"
  143.         ;;
  144.         ANC* )
  145.         PDO_WOF_PRODUCT="WebObjects Academic"
  146.         ;;
  147.         "")
  148.         echo "No installation has been performed."
  149.         exit 0
  150.         ;;
  151.         *)
  152.         echo "Unrecognized serial number; try again."
  153.         continue
  154.         ;;
  155.         esac
  156.         PDO_WOF_LICENSE=$answer
  157.         echo ""
  158.         echo "You are about to install $PDO_WOF_PRODUCT."
  159.         $ECHO "Continue? [ynq] " $NNL
  160.         read answer
  161.         case $answer in
  162.         q | Q | QUIT | quit | Quit)
  163.             echo "No installation has been performed."
  164.             exit 0
  165.             ;;
  166.         y | Y | YES | yes | Yes)
  167.             ;;
  168.         *)
  169.             PDO_WOF_LICENSE=
  170.             ;;
  171.         esac
  172.     done
  173.     case $PDO_WOF_LICENSE in
  174.     AMX* | ANA* | ANG* | ANE* )
  175.         PDO_INSTALL_USER=YES
  176.         PDO_INSTALL_DEV=YES
  177.         PDO_INSTALL_WOUSER=YES
  178.         PDO_INSTALL_WODEV=YES
  179.         PDO_INSTALL_EOUSER=YES
  180.         PDO_INSTALL_EODEV=YES
  181.         ;;
  182.     AMY* | ANB* | ANC* | ANH* | ANF* )
  183.         PDO_INSTALL_USER=YES
  184.         PDO_INSTALL_DEV=NO
  185.         PDO_INSTALL_WOUSER=YES
  186.         PDO_INSTALL_WODEV=NO
  187.         PDO_INSTALL_EOUSER=YES
  188.         PDO_INSTALL_EODEV=NO
  189.         ;;
  190.     esac
  191.     else
  192.     # Normal question and answer PDO/EOF installation    
  193.     echo ""
  194.     echo "Welcome to the PDO/EOF installation program!"
  195.     echo ""
  196.     echo ""
  197.     PDO_PRODUCT=PDO
  198.     PDO_INSTALL_DIR=/opt/PDO/4.1
  199.     echo "Do you want the PDO developer tools installed (in addition"
  200.     $ECHO "to the PDO runtime)? [ynq] " $NNL
  201.     read answer
  202.     case $answer in
  203.     q | Q | QUIT | quit | Quit)
  204.         echo "No installation has been performed."
  205.         exit 0
  206.         ;;
  207.     y | Y | YES | yes | Yes)
  208.         PDO_INSTALL_DEV=YES
  209.         ;;
  210.     *)
  211.         PDO_INSTALL_DEV=NO
  212.         ;;
  213.     esac
  214.     
  215.     echo ""
  216.     $ECHO "Do you want to install EOF in addition to PDO? [ynq] " $NNL
  217.     read answer
  218.     case $answer in
  219.     q | Q | QUIT | quit | Quit)
  220.         echo "No installation has been performed."
  221.         exit 0
  222.         ;;
  223.     y | Y | YES | yes | Yes)
  224.         PDO_INSTALL_EOUSER=YES
  225.         ;;
  226.     *)
  227.         PDO_INSTALL_EOUSER=NO
  228.         ;;
  229.     esac
  230.     
  231.     if [ xYES = x$PDO_INSTALL_EOUSER -a xYES = x$PDO_INSTALL_DEV ]; then
  232.         echo ""
  233.         $ECHO "Do you want to install the EOF developer tools also? [ynq] " $NNL
  234.         read answer
  235.         case $answer in
  236.         q | Q | QUIT | quit | Quit)
  237.         echo "No installation has been performed."
  238.         exit 0
  239.         ;;
  240.         y | Y | YES | yes | Yes)
  241.         PDO_INSTALL_EODEV=YES
  242.         ;;
  243.         *)
  244.         PDO_INSTALL_EODEV=NO
  245.         ;;
  246.         esac
  247.     fi
  248.     fi
  249.  
  250.     if [ x != x$PDO_LOCAL_PACKAGE ]; then
  251.     echo ""
  252.     echo "This installation contains the local software package.  Do you wish"
  253.     $ECHO "to install the local software on your system? [ynq] " $NNL
  254.     read answer
  255.     case $answer in
  256.     q | Q | QUIT | quit | Quit)
  257.         echo "No installation has been performed."
  258.         exit 0
  259.         ;;
  260.     y | Y | YES | yes | Yes)
  261.         PDO_INSTALL_LOCAL=YES
  262.         ;;
  263.     *)
  264.         PDO_INSTALL_LOCAL=NO
  265.         ;;
  266.     esac
  267.     fi
  268.  
  269.     PDO_RENAME_INSTALL_DIR=NO
  270.     PDO_REUSE_INSTALL_DIR=NO
  271.     while `true`; do
  272.     echo ""
  273.     echo "Please type a directory in which to install $PDO_PRODUCT.  The default"
  274.     echo "installation location is [$PDO_INSTALL_DIR]."
  275.     $ECHO "--> " $NNL
  276.     read newdir
  277.     if [ x != x$newdir ]; then
  278.         PDO_INSTALL_DIR=$newdir
  279.     fi
  280.     ls $PDO_INSTALL_DIR >/dev/null 2>&1
  281.     if [ 0 != $? ]; then
  282.         echo ""
  283.         echo "The directory '$PDO_INSTALL_DIR' does not exist."
  284.         $ECHO "Shall I create it for you? [ynq] " $NNL
  285.         read answer
  286.         case $answer in
  287.         q | Q | QUIT | quit | Quit)
  288.         echo "No installation has been performed."
  289.         exit 0
  290.         ;;
  291.         y | Y | YES | yes | Yes)
  292.         ;;
  293.         *)
  294.         continue
  295.         ;;
  296.         esac
  297.     else
  298.         if [ -d "$PDO_INSTALL_DIR" ]; then
  299.         echo ""
  300.         echo "WARNING: '$PDO_INSTALL_DIR' exists and may not be empty."
  301.         echo "   1) specify a new directory (default)"
  302.         echo "   2) use the existing directory (not recommended)"
  303.         echo "   3) rename the existing directory"
  304.         echo "   4) delete the existing directory"
  305.         echo "   5) cancel the installation"
  306.         $ECHO "--> " $NNL
  307.         read choice
  308.         case $choice in
  309.         1 | "" )
  310.             continue
  311.             ;;
  312.         2)
  313.             PDO_REUSE_INSTALL_DIR=YES
  314.             ;;
  315.         3)
  316.             PDO_RENAME_INSTALL_DIR=YES
  317.             ;;
  318.         4)
  319.             ;;
  320.         *)
  321.             echo "No installation has been performed."
  322.             exit 0
  323.             ;;
  324.         esac
  325.         else
  326.         echo ""
  327.         echo "WARNING: '$PDO_INSTALL_DIR' exists and is not a directory."
  328.         echo "   1) specify a new directory"
  329.         echo "   2) delete the file"
  330.         echo "   3) cancel the installation"
  331.         $ECHO "--> " $NNL
  332.         read choice
  333.         case $choice in
  334.         1 | "" )
  335.             continue
  336.             ;;
  337.         2)
  338.             ;;
  339.         *)
  340.             echo "No installation has been performed."
  341.             exit 0
  342.             ;;
  343.         esac
  344.         fi
  345.     fi
  346.  
  347.     echo ""
  348.     echo "The release will be installed:"
  349.     echo ""
  350.     echo "  From: '$PDO_DIR'"
  351.     echo "  To:   '$PDO_INSTALL_DIR'"
  352.     echo ""
  353.     $ECHO "Is this correct? [ynq] " $NNL
  354.     read answer
  355.     case $answer in
  356.     q | Q | QUIT | quit | Quit)
  357.         echo "No installation has been performed."
  358.         exit 0
  359.         ;;
  360.     y | Y | YES | yes | Yes)
  361.         break
  362.         ;;
  363.     *)
  364.         ;;
  365.     esac
  366.     done
  367.  
  368.     PDO_CGIBIN_DIR=
  369.     PDO_HTTPDOC_DIR=
  370.     if [ x != x$PDO_WOF_LICENSE ]; then
  371.     while `true`; do
  372.         echo ""
  373.         echo "Please type the cgi-bin (script) directory which your http server"
  374.         echo "uses.  You do not need to specify this now (leave the response"
  375.         echo "field blank), if your http server is on another machine or you want"
  376.         echo "to configure this yourself later."
  377.         $ECHO "--> " $NNL
  378.         read PDO_CGIBIN_DIR
  379.         if [ x != x$PDO_CGIBIN_DIR ]; then
  380.         ls $PDO_CGIBIN_DIR >/dev/null 2>&1
  381.         if [ 0 != $? ]; then
  382.             echo ""
  383.             echo "The directory '$PDO_CGIBIN_DIR' does not exist."
  384.             $ECHO "Shall I create it for you? [ynq] " $NNL
  385.             read answer
  386.             case $answer in
  387.             q | Q | QUIT | quit | Quit)
  388.             echo "No installation has been performed."
  389.             exit 0
  390.             ;;
  391.             y | Y | YES | yes | Yes)
  392.             ;;
  393.             *)
  394.             continue
  395.             ;;
  396.             esac
  397.         fi
  398.         fi
  399.         break
  400.     done
  401.  
  402.     while `true`; do
  403.         echo ""
  404.         echo "Please type the http document root directory which your httpd server"
  405.         echo "uses.  You do not need to specify this now (leave the response"
  406.         echo "field blank), if your http server is on another machine or you want"
  407.         echo "to configure this yourself later."
  408.         $ECHO "--> " $NNL
  409.         read PDO_HTTPDOC_DIR
  410.         if [ x != x$PDO_HTTPDOC_DIR ]; then
  411.         ls $PDO_HTTPDOC_DIR >/dev/null 2>&1
  412.         if [ 0 != $? ]; then
  413.             echo ""
  414.             echo "The directory '$PDO_HTTPDOC_DIR' does not exist."
  415.             $ECHO "Shall I create it for you? [ynq] " $NNL
  416.             read answer
  417.             case $answer in
  418.             q | Q | QUIT | quit | Quit)
  419.             echo "No installation has been performed."
  420.             exit 0
  421.             ;;
  422.             y | Y | YES | yes | Yes)
  423.             ;;
  424.             *)
  425.             continue
  426.             ;;
  427.             esac
  428.         fi
  429.         fi
  430.         break
  431.     done
  432.     fi
  433.  
  434.     ls /NextDeveloper >/dev/null 2>&1
  435.     nextdeveloperExists=$?
  436.     ls /NextLibrary >/dev/null 2>&1
  437.     nextlibraryExists=$?
  438.  
  439.     PDO_CREATE_LINKS=YES
  440.     if [ 0 != $nextdeveloperExists -a 0 != $nextlibraryExists ]; then
  441.     true
  442.     elif [ 0 = $nextdeveloperExists -a 0 = $nextlibraryExists ]; then
  443.     echo ""
  444.     echo "WARNING: One or more of the files/directories:"
  445.     echo "            /NextDeveloper"
  446.     echo "            /NextLibrary"
  447.     echo "already exist.  You can:"
  448.     echo "   1) delete the existing files/directories (default)"
  449.     echo "   2) rename the existing files/directories"
  450.     echo "   3) cancel the installation"
  451.     $ECHO "--> " $NNL
  452.     read choice
  453.     case $choice in
  454.     1 | "" )
  455.         ;;
  456.     2)
  457.         PDO_RENAME_LINKS=YES
  458.         ;;
  459.     *)
  460.         echo "No installation has been performed."
  461.         exit 0
  462.         ;;
  463.     esac
  464.     fi
  465.  
  466.     echo ""
  467.     echo "Do you want links to $PDO_INSTALL_DIR/NextDeveloper and"
  468.     $ECHO "$PDO_INSTALL_DIR/NextLibrary created in /usr? [ynq] " $NNL
  469.     read answer
  470.     case $answer in
  471.     q | Q | QUIT | quit | Quit)
  472.     echo "No installation has been performed."
  473.     exit 0
  474.     ;;
  475.     y | Y | YES | yes | Yes)
  476.     PDO_CREATE_USRLINKS=YES
  477.     ;;
  478.     *)
  479.     PDO_CREATE_USRLINKS=NO
  480.     ;;
  481.     esac
  482.  
  483.     if [ xYES = x$PDO_CREATE_USRLINKS ]; then
  484.     ls /usr/NextDeveloper >/dev/null 2>&1
  485.     usrnextdeveloperExists=$?
  486.     ls /usr/NextLibrary >/dev/null 2>&1
  487.     usrnextlibraryExists=$?
  488.     
  489.     if [ 0 != $usrnextdeveloperExists -a 0 != $usrnextlibraryExists ]; then
  490.         true
  491.     elif [ 0 = $usrnextdeveloperExists -a 0 = $usrnextlibraryExists ]; then
  492.         echo ""
  493.         echo "WARNING: One or more of the files/directories:"
  494.         echo "            /usr/NextDeveloper"
  495.         echo "            /usr/NextLibrary"
  496.         echo "already exist.  You can:"
  497.         echo "   1) delete the existing files/directories (default)"
  498.         echo "   2) rename the existing files/directories"
  499.         echo "   3) cancel the installation"
  500.         $ECHO "--> " $NNL
  501.         read choice
  502.         case $choice in
  503.         1 | "" )
  504.         ;;
  505.         2)
  506.         PDO_RENAME_LINKS=YES
  507.         ;;
  508.         *)
  509.         echo "No installation has been performed."
  510.         exit 0
  511.         ;;
  512.         esac
  513.     fi
  514.     fi
  515.  
  516.     $PSALL | $GREPQUIETLY -v grep | $GREPQUIETLY machd
  517.     if [ 0 != $? ]; then
  518.         echo ""
  519.         echo "The running PDO services should be terminated before beginning"
  520.         $ECHO "installation.  Do you want them terminated? [ynq] " $NNL
  521.         read answer
  522.         case $answer in
  523.         q | Q | QUIT | quit | Quit)
  524.         echo "No installation has been performed."
  525.         exit 0
  526.         ;;
  527.         y | Y | YES | yes | Yes)
  528.         PDO_TERMINATE_DAEMONS=YES
  529.         ;;
  530.         *)
  531.         PDO_TERMINATE_DAEMONS=NO
  532.         ;;
  533.         esac
  534.     fi
  535.  
  536.     echo ""
  537.     echo "Foundation's NSString class supports a number of different character"
  538.     echo "encodings for C strings, including ASCII, NEXTSTEP, Japanese EUC,"
  539.     echo "ISOLatin1, and Unicode.  The default encoding is NEXTSTEP encoding."
  540.     echo "Japanese users may wish this encoding to be Japanese EUC.  Do you"
  541.     echo "wish to use the Japanese EUC encoding as the default encoding for"
  542.     $ECHO "Foundation's NSString class? [ynq] " $NNL
  543.     read answer
  544.     case $answer in
  545.     q | Q | QUIT | quit | Quit)
  546.     echo "No installation has been performed."
  547.     exit 0
  548.     ;;
  549.     y | Y | YES | yes | Yes)
  550.     PDO_USE_EUC_ENCODING=YES
  551.     ;;
  552.     *)
  553.     PDO_USE_EUC_ENCODING=NO
  554.     ;;
  555.     esac
  556.  
  557.     if [ xYES = x$PDO_INSTALL_DEV ]; then
  558.     echo ""
  559.     echo "Some system include files are incompatible with the ANSI standard."
  560.     echo "If you choose, the incompatible system header files will be copied"
  561.     echo "to an alternate location and modified to be ANSI compatible.  Most"
  562.     echo "$PDO_PRODUCT programs will not compile without these fixes.  Do you want"
  563.     $ECHO "to fix your header files to be ANSI-compatible? [ynq] " $NNL
  564.     read answer
  565.     case $answer in
  566.     q | Q | QUIT | quit | Quit)
  567.         echo "No installation has been performed."
  568.         exit 0
  569.         ;;
  570.     n | N | NO | no | No)
  571.         PDO_RUN_FIXINCLUDES=NO
  572.         ;;
  573.     *)
  574.         PDO_RUN_FIXINCLUDES=YES
  575.         ;;
  576.     esac
  577.     fi
  578. fi
  579.  
  580.  
  581. if [ x = x$PDO_PRODUCT ]; then
  582.     if [ -d /NextLibrary/Receipts/WOF ]; then
  583.     PDO_PRODUCT=WebObjects
  584.     else
  585.     PDO_PRODUCT=PDO
  586.     fi
  587. fi
  588.  
  589. if [ \( xYES = x$PDO_INSTALLING -a x = x$PDO_AUTOMATIC_INSTALL \) -o x = x$PDO_INSTALLING ]; then
  590.     # Normal question and answer enablement
  591.  
  592.     echo ""
  593.     echo "$PDO_PRODUCT programs require some support services to be enabled. You"
  594.     echo "can start them by hand by executing '/NextDeveloper/etc/rc.pdo', or"
  595.     echo "you can have the operating system startup commands be modified for"
  596.     echo "you so that PDO services will always be running after every reboot."
  597.     $ECHO "Do you want PDO services to run at boot time? [ynq] " $NNL
  598.     read answer
  599.     case $answer in
  600.     q | Q | QUIT | quit | Quit)
  601.     if [ xYES = x$PDO_INSTALLING ]; then
  602.         echo "No installation has been performed."
  603.         exit 0
  604.     else
  605.         echo "PDO not enabled."
  606.         exit 0
  607.     fi
  608.     ;;
  609.     y | Y | YES | yes | Yes)
  610.     PDO_ENABLE_BOOT_START=YES
  611.     ;;
  612.     *)
  613.     PDO_ENABLE_BOOT_START=NO
  614.     ;;
  615.     esac
  616.     
  617.     echo ""
  618.     if [ xYES = x$PDO_INSTALLING ]; then
  619.     $ECHO "Do you want PDO services started during installation? [ynq] " $NNL
  620.     else
  621.     $ECHO "Do you want PDO services started now? [ynq] " $NNL
  622.     fi
  623.     read answer
  624.     case $answer in
  625.     q | Q | QUIT | quit | Quit)
  626.     if [ xYES = x$PDO_INSTALLING ]; then
  627.         echo "No installation has been performed."
  628.         exit 0
  629.     else
  630.         echo "PDO not enabled."
  631.         exit 0
  632.     fi
  633.     ;;
  634.     y | Y | YES | yes | Yes)
  635.     PDO_START_DAEMONS=YES
  636.     ;;
  637.     *)
  638.     PDO_START_DAEMONS=NO
  639.     ;;
  640.     esac
  641.     
  642.     echo ""
  643.     echo "You can have links to some common commands in /NextDeveloper/bin"
  644.     echo "made in /usr/local/bin.  Existing files in /usr/local/bin will not"
  645.     echo "be modified.  Would you like links to gcc, gdb, make, and mkdirs"
  646.     $ECHO "placed in /usr/local/bin? [ynq] " $NNL
  647.     read answer
  648.     case $answer in
  649.     q | Q | QUIT | quit | Quit)
  650.     if [ xYES = x$PDO_INSTALLING ]; then
  651.         echo "No installation has been performed."
  652.         exit 0
  653.     else
  654.         echo "PDO not enabled."
  655.         exit 0
  656.     fi
  657.     ;;
  658.     y | Y | YES | yes | Yes)
  659.     PDO_CREATE_LOCAL_LINKS=YES
  660.     ;;
  661.     *)
  662.     PDO_CREATE_LOCAL_LINKS=NO
  663.     ;;
  664.     esac
  665.  
  666.     if [ SOLARIS = $PDO_OSDIR ]; then
  667.     echo ""
  668.     echo "The PDO library libpdo.so must be in a known location for executables"
  669.     echo "to run.  It resides in /NextDeveloper/lib.  You can either have a link"
  670.     echo "to this library installed in /usr/lib, or each $PDO_PRODUCT user/developer"
  671.     echo "must add the path /NextDeveloper/lib to their LD_LIBRARY_PATH environment"
  672.     $ECHO "variable.  Do you want a link in /usr/lib to this library? [ynq] " $NNL
  673.     read answer
  674.     case $answer in
  675.     q | Q | QUIT | quit | Quit)
  676.         echo "No installation has been performed."
  677.         exit 0
  678.         ;;
  679.     n | N | NO | no | No)
  680.         PDO_CREATE_LIBPDO_LINK=NO
  681.         ;;
  682.     *)
  683.         PDO_CREATE_LIBPDO_LINK=YES
  684.         ;;
  685.     esac
  686.     fi
  687. fi
  688.  
  689. # All questions have been asked at this point
  690. echo ""
  691. echo "There are no more questions."
  692.  
  693. # The development tools require user files as well
  694. if [ xYES = x$PDO_INSTALL_DEV ]; then
  695.     PDO_INSTALL_USER=YES
  696. fi
  697.  
  698. if [ xYES = x$PDO_INSTALL_EODEV ]; then
  699.     PDO_INSTALL_EOUSER=YES
  700. fi
  701.  
  702. if [ xYES = x$PDO_INSTALL_WODEV ]; then
  703.     PDO_INSTALL_WOUSER=YES
  704. fi
  705.  
  706. # Ensure packages exist
  707. if [ xYES = x$PDO_INSTALL_USER ]; then
  708.     if [ x = x$PDO_USER_PACKAGE -o ! -f "$PDO_USER_PACKAGE" ]; then
  709.     echo "*** I was unable to find the PDO user files.  Please make sure"
  710.     echo "*** you are in the installation directory and try again.  If you"
  711.     echo "*** still have problems, please contact NeXT Support for help."
  712.     exit 1
  713.     fi
  714. fi
  715.  
  716. if [ xYES = x$PDO_INSTALL_DEV ]; then
  717.     if [ x = x$PDO_DEV_PACKAGE -o ! -f "$PDO_DEV_PACKAGE" ]; then
  718.     echo "*** I was unable to find the PDO developer files.  Please make sure"
  719.     echo "*** you are in the installation directory and try again.  If you"
  720.     echo "*** still have problems, please contact NeXT Support for help."
  721.     exit 1
  722.     fi
  723. fi
  724.  
  725. if [ xYES = x$PDO_INSTALL_EOUSER ]; then
  726.     if [ x = x$PDO_EOUSER_PACKAGE -o ! -f "$PDO_EOUSER_PACKAGE" ]; then
  727.     echo "*** I was unable to find the EOF user files.  Please make sure"
  728.     echo "*** you are in the installation directory and try again.  If you"
  729.     echo "*** still have problems, please contact NeXT Support for help."
  730.     exit 1
  731.     fi
  732. fi
  733.  
  734. if [ xYES = x$PDO_INSTALL_EODEV ]; then
  735.     if [ x = x$PDO_EODEV_PACKAGE -o ! -f "$PDO_EODEV_PACKAGE" ]; then
  736.     echo "*** I was unable to find the EOF developer files.  Please make sure"
  737.     echo "*** you are in the installation directory and try again.  If you"
  738.     echo "*** still have problems, please contact NeXT Support for help."
  739.     exit 1
  740.     fi
  741. fi
  742.  
  743. if [ xYES = x$PDO_INSTALL_WOUSER ]; then
  744.     if [ x = x$PDO_WOUSER_PACKAGE -o ! -f "$PDO_WOUSER_PACKAGE" ]; then
  745.     echo "*** I was unable to find the WOF user files.  Please make sure"
  746.     echo "*** you are in the installation directory and try again.  If you"
  747.     echo "*** still have problems, please contact NeXT Support for help."
  748.     exit 1
  749.     fi
  750. fi
  751.  
  752. if [ xYES = x$PDO_INSTALL_WODEV ]; then
  753.     if [ x = x$PDO_WODEV_PACKAGE -o ! -f "$PDO_WODEV_PACKAGE" ]; then
  754.     echo "*** I was unable to find the WOF developer files.  Please make sure"
  755.     echo "*** you are in the installation directory and try again.  If you"
  756.     echo "*** still have problems, please contact NeXT Support for help."
  757.     exit 1
  758.     fi
  759. fi
  760.  
  761. if [ xYES = x$PDO_INSTALL_LOCAL ]; then
  762.     if [ x = x$PDO_LOCAL_PACKAGE -o ! -f "$PDO_LOCAL_PACKAGE" ]; then
  763.     echo "*** I was unable to find the PDO local files.  Please make sure"
  764.     echo "*** you are in the installation directory and try again.  If you"
  765.     echo "*** still have problems, please contact NeXT Support for help."
  766.     exit 1
  767.     fi
  768. fi
  769.  
  770. if [ x = x$PDO_GNUTAR -o ! -f "$PDO_GNUTAR" ]; then
  771.     if [ -f $PDO_DIR/$PDO_OSDIR/GNUTAR ]; then
  772.     cp $PDO_DIR/$PDO_OSDIR/GNUTAR /tmp/gnutar
  773.     elif [ -f $PDO_DIR/$PDO_OSDIR/gnutar ]; then
  774.     cp $PDO_DIR/$PDO_OSDIR/gnutar /tmp/gnutar
  775.     elif [ -f $PDO_DIR/GNUTAR ]; then
  776.     cp $PDO_DIR/GNUTAR /tmp/gnutar
  777.     elif [ -f $PDO_DIR/gnutar ]; then
  778.     cp $PDO_DIR/gnutar /tmp/gnutar
  779.     fi
  780.     if [ ! -f /tmp/gnutar ]; then
  781.     echo ""
  782.     echo "WARNING: I wasn't able to find gnutar on the CD.  While this won't"
  783.     echo "be fatal if you have gnutar somewhere else on your path, it might"
  784.     echo "indicate that you have an incomplete release.  Please contact NeXT"
  785.     echo "Support for help if any problems arise during this installation."
  786.     PDO_GNUTAR=gnutar
  787.     else
  788.     chmod 755 /tmp/gnutar
  789.     PDO_GNUTAR=/tmp/gnutar
  790.     fi
  791. fi
  792.  
  793. echo ""
  794. if [ x = x$PDO_WOF_LICENSE ]; then
  795.     echo "Beginning PDO/EOF installation."
  796. else
  797.     echo "Beginning $PDO_WOF_PRODUCT installation."
  798. fi
  799.  
  800. # Kill daemons
  801. if [ xYES = x$PDO_TERMINATE_DAEMONS ]; then
  802.     echo "Terminating PDO services."
  803.     for p in machd nmserver ; do
  804.     pid=`ps -ef | grep -v grep | grep $p | awk '{ print $2 }'`
  805.     if [ x != x$pid ]; then
  806.         kill $pid
  807.     fi
  808.     done
  809. fi
  810.  
  811. # Erase everything first
  812. ls $PDO_INSTALL_DIR >/dev/null 2>&1
  813. if [ 0 = $? ]; then
  814.     if [ xYES = x$PDO_RENAME_INSTALL_DIR ]; then
  815.     rm -rf $PDO_INSTALL_DIR.ORIG
  816.     mv $PDO_INSTALL_DIR $PDO_INSTALL_DIR.ORIG
  817.     if [ 0 != $? ]; then
  818.         echo "*** Cannot rename the existing installation directory."
  819.         exit 1
  820.     fi
  821.     echo "$PDO_INSTALL_DIR has been saved as $PDO_INSTALL_DIR.ORIG"
  822.     elif [ xNO = x$PDO_REUSE_INSTALL_DIR ]; then
  823.     echo "Removing existing $PDO_INSTALL_DIR"
  824.     rm -rf $PDO_INSTALL_DIR
  825.     if [ 0 != $? ]; then
  826.         echo "*** Cannot delete the existing installation directory."
  827.         exit 1
  828.     fi
  829.     fi
  830. fi
  831.  
  832. for d in /NextDeveloper /NextLibrary /usr/NextDeveloper /usr/NextLibrary ; do
  833.     ls $d >/dev/null 2>&1
  834.     if [ 0 = $? ]; then
  835.     if [ xYES = x$PDO_RENAME_LINKS ]; then
  836.         rm -rf $d.ORIG
  837.         mv $d $d.ORIG
  838.         if [ 0 != $? ]; then
  839.         echo "*** Cannot rename the existing $d directory."
  840.         exit 1
  841.         fi
  842.         echo "$d has been saved as $d.ORIG"
  843.     else
  844.         rm -r $d
  845.         if [ 0 != $? ]; then
  846.         echo "*** Cannot delete the existing $d directory."
  847.         exit 1
  848.         fi
  849.     fi
  850.     fi
  851. done
  852.  
  853. # Create structure
  854. echo "Creating installation directory and links."
  855. mkdir -p $PDO_INSTALL_DIR >/dev/null 2>&1
  856. if [ ! -d "$PDO_INSTALL_DIR" ]; then
  857.     echo "*** Cannot create the installation directory."
  858.     exit 1
  859. fi
  860.  
  861. if [ xYES = x$PDO_CREATE_LINKS ]; then
  862.     for d in /NextDeveloper /NextLibrary ; do
  863.     ln -s $PDO_INSTALL_DIR/$d $d
  864.     if [ 0 != $? ]; then
  865.         echo "*** Cannot create the $d link."
  866.         exit 1
  867.     fi
  868.     if [ xYES = x$PDO_CREATE_USRLINKS ]; then
  869.         ln -s $d /usr/$d
  870.         if [ 0 != $? ]; then
  871.         echo "*** Cannot create the /usr$d link."
  872.         exit 1
  873.         fi
  874.     fi
  875.     done
  876. fi
  877.  
  878. # Unarchive PDO User
  879. if [ xYES = x$PDO_INSTALL_USER ]; then
  880.     echo "Installing PDO runtime."
  881.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_USER_PACKAGE)
  882.     if [ 0 != $? ]; then
  883.     echo "*** There appear to have been some problems installing the PDO runtime."
  884.     exit 1
  885.     fi
  886. fi
  887.  
  888. # Unarchive PDO Developer
  889. if [ xYES = x$PDO_INSTALL_DEV ]; then
  890.     echo "Installing PDO development tools."
  891.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_DEV_PACKAGE)
  892.     if [ 0 != $? ]; then
  893.     echo "*** There appear to have been some problems installing the PDO developer tools."
  894.     exit 1
  895.     fi
  896. fi
  897.  
  898. # Unarchive EOF User
  899. if [ xYES = x$PDO_INSTALL_EOUSER ]; then
  900.     echo "Installing EOF runtime."
  901.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_EOUSER_PACKAGE)
  902.     if [ 0 != $? ]; then
  903.     echo "*** There appear to have been some problems installing the EOF runtime."
  904.     exit 1
  905.     fi
  906. fi
  907.  
  908. # Unarchive EOF Developer
  909. if [ xYES = x$PDO_INSTALL_EODEV ]; then
  910.     echo "Installing EOF development tools."
  911.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_EODEV_PACKAGE)
  912.     if [ 0 != $? ]; then
  913.     echo "*** There appear to have been some problems installing the EOF developer tools."
  914.     exit 1
  915.     fi
  916. fi
  917.  
  918. # Unarchive WOF User
  919. if [ xYES = x$PDO_INSTALL_WOUSER ]; then
  920.     echo "Installing WOF runtime."
  921.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_WOUSER_PACKAGE)
  922.     if [ 0 != $? ]; then
  923.     echo "*** There appear to have been some problems installing the WOF runtime."
  924.     exit 1
  925.     fi
  926. fi
  927.  
  928. # Unarchive WOF Developer
  929. if [ xYES = x$PDO_INSTALL_WODEV ]; then
  930.     echo "Installing WOF development tools."
  931.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_WODEV_PACKAGE)
  932.     if [ 0 != $? ]; then
  933.     echo "*** There appear to have been some problems installing the WOF developer tools."
  934.     exit 1
  935.     fi
  936. fi
  937.  
  938. # Unarchive local archive
  939. if [ xYES = x$PDO_INSTALL_LOCAL ]; then
  940.     if [ xYES = x$PDO_CREATE_LINKS ]; then
  941.     for d in /LocalDeveloper ; do
  942.         rm -rf $d
  943.         if [ 0 != $? ]; then
  944.         echo "*** Cannot delete $d."
  945.         exit 1
  946.         fi
  947.         rm -rf /usr/$d
  948.         if [ 0 != $? ]; then
  949.         echo "*** Cannot delete /usr$d."
  950.         exit 1
  951.         fi
  952.         ln -s $PDO_INSTALL_DIR/$d $d
  953.         if [ 0 != $? ]; then
  954.         echo "*** Cannot create the $d link."
  955.         exit 1
  956.         fi
  957.         if [ xYES = x$PDO_CREATE_USRLINKS ]; then
  958.         ln -s $d /usr/$d
  959.         if [ 0 != $? ]; then
  960.             echo "*** Cannot create the /usr$d link."
  961.             exit 1
  962.         fi
  963.         fi
  964.     done
  965.     fi
  966.     echo "Installing local files."
  967.     (cd $PDO_INSTALL_DIR; $PDO_GNUTAR -xZf $PDO_LOCAL_PACKAGE)
  968.     if [ 0 != $? ]; then
  969.     echo "*** There appear to have been some problems installing the local files."
  970.     exit 1
  971.     fi
  972. fi
  973.  
  974. # copy the software.ver off the CD
  975. if [ xYES = x$PDO_INSTALL_USER -o xYES = x$PDO_INSTALL_DEV ]; then
  976.     mkdir -p $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO
  977.     cp $PDO_DIR/software.ver $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO
  978.     echo "PDO_PRODUCT=$PDO_PRODUCT" >> $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO/uninstall.info
  979.     echo "PDO_INSTALL_DIR=$PDO_INSTALL_DIR" >> $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO/uninstall.info
  980.     echo "PDO_CGIBIN_DIR=$PDO_CGIBIN_DIR" >> $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO/uninstall.info
  981.     echo "PDO_HTTPDOC_DIR=$PDO_HTTPDOC_DIR" >> $PDO_INSTALL_DIR/NextLibrary/Receipts/PDO/uninstall.info
  982. fi
  983. if [ xYES = x$PDO_INSTALL_EOUSER -o xYES = x$PDO_INSTALL_EODEV ]; then
  984.     mkdir -p $PDO_INSTALL_DIR/NextLibrary/Receipts/EOF
  985.     cp $PDO_DIR/software.ver $PDO_INSTALL_DIR/NextLibrary/Receipts/EOF
  986. fi
  987. if [ xYES = x$PDO_INSTALL_WOUSER -o xYES = x$PDO_INSTALL_WODEV ]; then
  988.     mkdir -p $PDO_INSTALL_DIR/NextLibrary/Receipts/WOF
  989.     cp $PDO_DIR/software.ver $PDO_INSTALL_DIR/NextLibrary/Receipts/WOF
  990. fi
  991.  
  992. if [ xYES = x$PDO_USE_EUC_ENCODING ]; then
  993.     echo "3" > $PDO_INSTALL_DIR/NextLibrary/Frameworks/Foundation.framework/Resources/CStringEncoding
  994. fi
  995.  
  996. # Enable the DCE stuff
  997. if [ $PDO_OSDIR = HP-UX ]; then
  998.     for f in /usr/lib/libcma.sl /usr/lib/libcma.1 ; do
  999.         if [ ! -f $f ]; then
  1000.             echo "*** WARNING: unable to find $f.  The DCE"
  1001.             echo "*** software is required to run $PDO_PRODUCT programs."
  1002.             exit 1
  1003.         fi
  1004.     done
  1005.  
  1006.     # Create symlinks in PDODIR, so gcc knows where to look for DCE stuff.
  1007.     rm -f /NextDeveloper/lib/libdce.a
  1008.     rm -f /NextDeveloper/lib/libc_r.a
  1009.     rm -f /NextDeveloper/lib/libpdocma.a
  1010.     rm -f /NextDeveloper/lib/libpdocma.sl
  1011.     rm -f /NextDeveloper/lib/libcma.1
  1012.  
  1013.     mkdir -p /NextDeveloper/lib
  1014.     ln -s /usr/lib/libcma.sl /NextDeveloper/lib/libpdocma.sl
  1015.     ln -s /usr/lib/libcma.1 /NextDeveloper/lib/libcma.1
  1016. fi
  1017.  
  1018. if [ x != x$PDO_CGIBIN_DIR ]; then
  1019.     mkdir -p $PDO_CGIBIN_DIR >/dev/null 2>&1
  1020.     ln -s /NextLibrary/WOAdaptors/CGI/WebObjects $PDO_CGIBIN_DIR 
  1021. fi
  1022.  
  1023. if [ x != x$PDO_HTTPDOC_DIR ]; then
  1024.     mkdir -p $PDO_HTTPDOC_DIR/WebObjects >/dev/null 2>&1
  1025.     ln -s /NextDeveloper/Examples/WebObjects $PDO_HTTPDOC_DIR/WebObjects/Examples
  1026.     ln -s /NextLibrary/Java $PDO_HTTPDOC_DIR/WebObjects
  1027. fi
  1028.  
  1029. if [ x != x$PDO_WOF_LICENSE ]; then
  1030.     sh $PDO_INSTALL_DIR/NextDeveloper/bin/license.sh $PDO_INSTALL_DIR $PDO_WOF_LICENSE
  1031.     rm -f $PDO_INSTALL_DIR/NextDeveloper/bin/license.sh
  1032. fi
  1033.  
  1034. # Don't need gnutar anymore
  1035. if [ -f /tmp/gnutar ]; then
  1036.     rm -f /tmp/gnutar
  1037. fi
  1038.  
  1039. # cd off the CDROM so it can be unmounted
  1040. cd /
  1041.  
  1042.  
  1043. # All questions have been asked at this point
  1044.  
  1045. echo ""
  1046. echo "Beginning PDO enablement."
  1047.   
  1048. # Enable boot-time service startup
  1049. if [ xYES = x$PDO_ENABLE_BOOT_START ]; then
  1050.     echo "Enabling boot-time service startup."
  1051.     case $PDO_OSDIR in
  1052.     SOLARIS)
  1053.     cp /NextDeveloper/etc/NeXTpdo /etc/init.d
  1054.     rm -f /etc/rc0.d/K*NeXTpdo
  1055.     rm -f /etc/rc1.d/K*NeXTpdo
  1056.     rm -f /etc/rc2.d/S*NeXTpdo
  1057.     ln /etc/init.d/NeXTpdo /etc/rc0.d/K54NeXTpdo        
  1058.     ln /etc/init.d/NeXTpdo /etc/rc1.d/K54NeXTpdo        
  1059.     ln /etc/init.d/NeXTpdo /etc/rc2.d/S78NeXTpdo
  1060.     ;;
  1061.     HP-UX)
  1062.     case $PDO_OSVERS in
  1063.     B.10.*)
  1064.         cp /NextDeveloper/etc/NeXTpdo /sbin/init.d
  1065.         rm -f /sbin/rc0.d/K*NeXTpdo
  1066.         rm -f /sbin/rc2.d/S*NeXTpdo
  1067.         ln /sbin/init.d/NeXTpdo /sbin/rc0.d/K176NeXTpdo        
  1068.         ln /sbin/init.d/NeXTpdo /sbin/rc2.d/S780NeXTpdo
  1069.         ;;
  1070.     *)
  1071.         echo ""
  1072.         echo "*** Unsupported HP-UX version " $PDO_OSVERS
  1073.         echo "*** Cannot install the startup scripts."
  1074.         ;;
  1075.     esac
  1076.     ;;
  1077.     esac
  1078. fi
  1079.  
  1080. # Set up /usr/local/bin symlinks
  1081. if [ xYES = x$PDO_CREATE_LOCAL_LINKS ]; then
  1082.     echo "Creating /usr/local/bin links."
  1083.     mkdir -p /usr/local/bin
  1084.     for link in gcc gdb make mkdirs ; do
  1085.     ln -s /NextDeveloper/bin/$link /usr/local/bin/$link 2>/dev/null
  1086.     if [ 0 != $? ]; then
  1087.         echo "You already have a /usr/local/bin/$link."
  1088.     fi
  1089.     done
  1090. fi
  1091.  
  1092. if [ xYES = x$PDO_CREATE_LIBPDO_LINK ]; then
  1093.     rm -f /usr/lib/libpdo.so
  1094.     ln -s /NextDeveloper/lib/libpdo.so /usr/lib
  1095. fi
  1096.  
  1097. # Start the services
  1098. if [ xYES = x$PDO_START_DAEMONS ]; then
  1099.     $PSALL | $GREPQUIETLY -v grep | $GREPQUIETLY machd
  1100.     if [ 0 != $? ]; then
  1101.     /NextDeveloper/etc/NeXTpdo start
  1102.     else
  1103.     echo "PDO services are already running."
  1104.     fi
  1105. fi
  1106.  
  1107.  
  1108. # Fix the headers
  1109. if [ xYES = x$PDO_RUN_FIXINCLUDES ]; then
  1110.     echo "Fixing header files."
  1111.     $PDO_INSTALL_DIR/NextDeveloper/etc/fixincludes
  1112. fi
  1113.  
  1114. if [ xYES = x$PDO_INSTALL_WOUSER ]; then
  1115.     echo "WebObjects is now installed."
  1116. elif [ xYES = x$PDO_INSTALL_EOUSER ]; then
  1117.     echo "PDO and EOF are now installed."
  1118. else
  1119.     echo "PDO is now installed."
  1120. fi
  1121.  
  1122. exit 0
  1123.  
  1124.