Gubed_install Simple script to make installation of the Gubed PHP debugger server easier. (C) 2004 Andras Mantia <amantia@kde.org> Gubed_install 0 0 578 327 Gubed Installation v0.1 CancelButton 490 289 77 27 &Cancel Spacer1 Horizontal Expanding 332 0 11 302 332 16 Spacer2 Vertical Expanding 0 175 416 108 16 175 Layout5 11 11 556 62 unnamed 0 6 TextLabel2 Target directory: TextLabel1 Archive name: gubedArchive @widgetText Select the archive containing Gubed (tar.bz2 format) targetDirectory @widgetText Directory The target directory (example /var/www) runServerCheck 11 79 473 23 Run the server after installation has finished RUN_SERVER=false RUN_SERVER=true If checked the server will be run in the background after the installation has finished logViewCheck 10 110 340 20 View installation log true VIEW_LOG=true Uncheck this if you do not want to see the installation log. The log may provide important information in case of installation failure. InstallButton 349 289 135 27 &Start Installation @logViewCheck @runServerCheck echo "Archive name: @gubedArchive" echo "Target directory: @targetDirectory" mkdir /tmp/gubed-install cd /tmp/gubed-install echo "Extracting the archive..." > /tmp/gubed-install-log tar xfj @gubedArchive >> /tmp/gubed-install-log dirName=`ls` cd $dirName echo "Compiling the server..." >> /tmp/gubed-install-log cd Server echo "Running autogen.sh..." >> /tmp/gubed-install-log ./autogen.sh >> /tmp/gubed-install-log echo "Running configure..." >> /tmp/gubed-install-log ./configure >> /tmp/gubed-install-log echo "Running make..." >> /tmp/gubed-install-log make >> /tmp/gubed-install-log echo "Installing the server..." >> /tmp/gubed-install-log cd /tmp/gubed-install cp -r $dirName "@targetDirectory" if test "$RUN_SERVER" == "true" then echo "Running the server..." >> /tmp/gubed-install-log cd "@targetDirectory" cd $dirName cd Server/src ./gbdServer & fi if test "$VIEW_LOG" == "true" then kwrite /tmp/gubed-install-log & sleep 10 fi echo "Cleaning up..." rm /tmp/gubed-install-log cd /tmp/gubed-install tqfind . | xargs rm -f > /dev/null cd /tmp/gubed-install cd $dirName rm -f "docs/Theory of operation" > /dev/null cd /tmp/gubed-install tqfind . | xargs rmdir -p > /dev/null rmdir /tmp/gubed-install > /dev/null true