Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Script by silvioprog - http://silvioprog.com.br
- echo "********************************************************"
- echo "* *"
- echo "* Automated installation v1.0 *"
- echo "* for install Lazarus/FPC (SVN version) *"
- echo "* Script by silvioprog *"
- echo "* *"
- echo "* This script is designed for Ubuntu x86 (32 Bit) *"
- echo "* *"
- echo "********************************************************"
- echo ""
- echo ""
- echo "Installing dependencies..."
- echo ""
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get install -y subversion fpc fp-utils fpc-source fp-units-misc
- echo ""
- echo "Downloading files..."
- echo ""
- cd ~
- wget -c http://silvioprog.com.br/download/temp/fpc_lazarus_src_svn.tar.gz
- echo ""
- echo "Unzipping FPC..."
- echo ""
- tar -vzxf fpc_lazarus_src_svn.tar.gz
- rm fpc_lazarus_src_svn.tar.gz
- echo "Updatting SVN..."
- cd fpc
- svn update
- cd ../lazarus
- svn update
- echo ""
- echo "Compiling new FPC..."
- echo ""
- cd ../fpc
- make clean all -e
- echo ""
- echo "Removing old FPC..."
- echo ""
- sudo apt-get remove -y fpc fp-utils fpc-source fp-units-misc fp-*
- sudo rm /etc/fpc.cfg
- echo ""
- echo "Installing new FPC..."
- echo ""
- sudo ln -s /home/$USER/fpc/share/doc/fpc-2.5.1 /usr/share/doc
- sudo ln -sf /home/$USER/fpc /usr/share/fpcsrc
- sudo mkdir /usr/lib/fpc
- sudo ln -sf /home/$USER/fpc/lib/fpc /usr/lib
- sudo ln -s /usr/lib/fpc/2.5.1/ppc386 /usr/bin/ppc386
- sudo ln -s /home/$USER/fpc/bin/bin2obj /home/$USER/fpc/bin/chmcmd /home/$USER/fpc/bin/chmls /home/$USER/fpc/bin/data2inc /home/$USER/fpc/bin/delp /home/$USER/fpc/bin/fd2pascal /home/$USER/fpc/bin/fp /home/$USER/fpc/bin/fpc /home/$USER/fpc/bin/fpclasschart /home/$USER/fpc/bin/fpcmake /home/$USER/fpc/bin/fpcmkcfg /home/$USER/fpc/bin/fpcres /home/$USER/fpc/bin/fpcsubst /home/$USER/fpc/bin/fpdoc /home/$USER/fpc/bin/fppkg /home/$USER/fpc/bin/fprcp /home/$USER/fpc/bin/grab_vcsa /home/$USER/fpc/bin/h2pas /home/$USER/fpc/bin/h2paspp /home/$USER/fpc/bin/instantfpc /home/$USER/fpc/bin/makeskel /home/$USER/fpc/bin/mkarmins /home/$USER/fpc/bin/mkx86ins /home/$USER/fpc/bin/plex /home/$USER/fpc/bin/postw32 /home/$USER/fpc/bin/ppdep /home/$USER/fpc/bin/ppudump /home/$USER/fpc/bin/ppufiles /home/$USER/fpc/bin/ppumove /home/$USER/fpc/bin/ptop /home/$USER/fpc/bin/pyacc /home/$USER/fpc/bin/rmcvsdir /home/$USER/fpc/bin/rstconv /home/$USER/fpc/bin/unitdiff /bin
- sudo /usr/lib/fpc/2.5.1/samplecfg /usr/lib/fpc/2.5.1/ /etc
- echo ""
- echo "Compiling Lazarus..."
- echo ""
- cd ../lazarus
- make clean all
- make bigideclean bigide
- echo ""
- echo "Creating links of Lazarus..."
- echo ""
- sudo ln -s /home/$USER/lazarus/startlazarus /bin
- sudo ln -s /home/$USER/lazarus/lazarus /bin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement