"Fossies" - the Fresh Open Source Software Archive

Member "Pansophica-src-1.3/Build.sh" (6 Feb 2008, 3417 Bytes) of package /linux/www/old/Pansophica-src-1.3-1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 echo "Welcome to the Pansophica build script ..."
    4 
    5 # source the environment
    6 . ./env.sh
    7 
    8 # build the pkgs
    9 
   10 # build tcltk
   11 echo "  building tcl and tk ..."
   12 
   13 #
   14 # TCL
   15 #
   16 # clean
   17 echo -n "  prep tcl ..."
   18 if [ -d ${TCLTKDST} ]; then
   19     rm -rf "${TCLTKDST}"
   20 fi
   21 # make the dir
   22 mkdir -p ${TCLTKDST}
   23 #
   24 # get rid of existing source
   25 pushd pkg >> ${OUTFILE} 2>&1
   26 if [ -d ${TCLSRC} ]; then
   27     rm -rf ${TCLSRC}
   28 fi
   29 # extract new source
   30 tar xvf ${TCLSRC}rc7-src.tar >> ${OUTFILE} 2>&1
   31 popd >> ${OUTFILE} 2>&1
   32 echo " done ..."
   33 
   34 # configure
   35 echo -n "  configure tcl ..."
   36 pushd ${TCLSRC}/unix >> ${OUTFILE} 2>&1
   37 bash -f ../../tcl${TCLTK_VER}.configure.sh >> ${OUTFILE} 2>&1
   38 if [ $? -ne 0 ]; then
   39     echo "Can't configure tcl"
   40     exit 30
   41 fi
   42 echo " done ..."
   43 
   44 # make
   45 echo -n "  make tcl ..."
   46 make >> ${OUTFILE} 2>&1
   47 if [ $? -ne 0 ]; then
   48     echo "Can't make tcl"
   49     exit 40
   50 fi
   51 echo " done ..."
   52 
   53 # install
   54 echo -n "  install tcl in private pkg tree ..."
   55 make install >> ${OUTFILE} 2>&1
   56 if [ $? -ne 0 ]; then
   57     echo "Can't install tcl"
   58     exit 50
   59 fi
   60 popd >> ${OUTFILE} 2>&1
   61 echo " done ..."
   62 
   63 
   64 #
   65 # TK
   66 #
   67 # get rid of existing source
   68 echo -n "  prep tk ..."
   69 pushd pkg >> ${OUTFILE} 2>&1
   70 if [ -d ${TKSRC} ]; then
   71     rm -rf ${TKSRC}
   72 fi
   73 # extract new source
   74 tar xvf ${TKSRC}rc5-src.tar >> ${OUTFILE} 2>&1
   75 popd >> ${OUTFILE} 2>&1
   76 echo " done ..."
   77 
   78 # configure
   79 echo -n "  configure tk ..."
   80 pushd ${TKSRC}/unix >> ${OUTFILE} 2>&1
   81 bash -f ../../tk${TCLTK_VER}.configure.sh >> ${OUTFILE} 2>&1
   82 if [ $? -ne 0 ]; then
   83     echo "Can't configure tk"
   84     exit 60
   85 fi
   86 echo " done ..."
   87 
   88 # patch
   89 echo -n "  patch tk ..."
   90 bash -f ../../tk${TCLTK_VER}.patch.sh >> ${OUTFILE} 2>&1
   91 if [ $? -ne 0 ]; then
   92     echo "Can't patch tk"
   93     exit 65
   94 fi
   95 echo " done ..."
   96 
   97 # make
   98 echo -n "  make tk ..."
   99 make >> ${OUTFILE} 2>&1
  100 if [ $? -ne 0 ]; then
  101     echo "Can't make tk"
  102     exit 70
  103 fi
  104 echo " done ..."
  105 
  106 # install
  107 echo -n "  install tk in private pkg tree ..."
  108 make install >> ${OUTFILE} 2>&1
  109 if [ $? -ne 0 ]; then
  110     echo "Can't install tk"
  111     exit 80
  112 fi
  113 popd >> ${OUTFILE} 2>&1
  114 echo " done ..."
  115 
  116 # build Togl
  117 echo -n "  prep togl ..."
  118 if [ -d ${TOGLDST} ]; then
  119     rm -rf ${TOGLDST}
  120 fi
  121 # make the dir
  122 mkdir -p ${TOGLDST}
  123 #
  124 # get rid of existing source
  125 pushd pkg >> ${OUTFILE} 2>&1
  126 if [ -d ${TOGLSRC} ]; then
  127     rm -rf ${TOGLSRC}
  128 fi
  129 # extract new source
  130 tar xvf ${TOGLSRC}.tar >> ${OUTFILE} 2>&1
  131 popd >> ${OUTFILE} 2>&1
  132 echo " done ..."
  133 
  134 # configure
  135 echo -n "  configure togl ..."
  136 pushd ${TOGLSRC} >> ${OUTFILE} 2>&1
  137 bash -f ../Togl${TOGL_VER}.configure.sh >> ${OUTFILE} 2>&1
  138 if [ $? -ne 0 ]; then
  139     echo "Can't configure togl"
  140     exit 90
  141 fi
  142 echo " done ..."
  143 
  144 # make
  145 echo -n "  make togl ..."
  146 make >> ${OUTFILE} 2>&1
  147 if [ $? -ne 0 ]; then
  148     echo "Can't make togl"
  149     exit 100
  150 fi
  151 echo " done ..."
  152 
  153 # install
  154 echo -n "  install togl in private pkg tree ..."
  155 make install >> ${OUTFILE} 2>&1
  156 if [ $? -ne 0 ]; then
  157     echo "Can't install togl"
  158     exit 105
  159 fi
  160 popd >> ${OUTFILE} 2>&1
  161 echo " done ..."
  162 
  163 # build BAF
  164 echo "  building Pansophica ..."
  165 
  166 pushd BAF >> ${OUTFILE} 2>&1
  167 echo -n "  prep ..."
  168 make clean >> ${OUTFILE} 2>&1
  169 rm -rf bin lib include build.out >> ${OUTFILE} 2>&1
  170 echo " done ..."
  171 echo -n "  make ..."
  172 make >> ${OUTFILE} 2>&1
  173 if [ $? -ne 0 ]; then
  174     echo "Can't build Pansophica"
  175     exit 110
  176 fi
  177 echo " done ..."
  178 popd >> ${OUTFILE} 2>&1
  179 
  180 echo "SUCCESS, run ./InstallAll.sh as priv-ed user to install Pansophica in ${BAF_HOME}"