script i normal kullanıcı yetkisi ile çalıştırın. Yeni kurulum sorunsuz şekilde ve aynı kullanıcı ile yapıldıysa sorunsuz olarak yapacaktır. Remark ları bilerek silmedim, kaynak ve fikir verebilir
- Bu script freepascal ve lazarus svn lerini güncelleyip build eder
- lazarusu gtk2 ve bigide olarak build eder
- lazarus kullanıcı ayarlarını "~/.lazarus" altına kaydeder. bu gizli klasörü yedek almanız, tüm IDE ayarlarınızı yedek almanız anlamına gelir. bu script svn leri kontrol ettikten sonra, freepascal ve lazarusu yeniden build eder, ardından lazarusu mevcut IDE ayarları ve eklenmiş yada çıkarılmış component setleri ile tekrar build eder
Kod: Tümünü seç
#!/bin/sh
set -e
echo "********************************************************"
echo "* Automated update v1.3 *"
echo "* for update Lazarus/FPC (SVN version) *"
echo "* *"
echo "* http://www.delphiturkiye.com *"
echo "* http://www.delphiturkiye.com/forum/viewforum.php?f=6 *"
echo "* *"
echo "* http://www.lazarus.freepascal.org/ *"
echo "* *"
echo "* See the source of inspiration for this script: *"
echo "* http://wiki.lazarus.freepascal.org/Lazarus_Manager *"
echo "* *"
echo "********************************************************"
echo "WARNING: The update will take a while, please wait!"
echo ""
echo "Step 1: Updating FPC SVN..."
echo ""
cd /opt/freepascal/2.7.1/
svn update #/opt/freepascal/2.7.1/
echo ""
echo "Step 2: Compiling new FPC..."
echo ""
make clean all install INSTALL_PREFIX=/opt/freepascal/2.7.1 OVERRIDEVERSIONCHECK=1 #>/opt/freepascal/2.7.1/verbose.txt
sleep 3
echo ""
echo "Step 3: Updatting Lazarus SVN..."
echo ""
cd /opt/lazarus/
svn update #/opt/lazarus/
sleep 3
echo ""
echo "Step 4: Compiling Lazarus..."
echo ""
make clean all LCL_PLATFORM=gtk2 bigide #>/opt/lazarus/verbose.txt
#http://wiki.lazarus.freepascal.org/lazbuild
./lazbuild --pcp=~/.lazarus --build-all --recursive --build-ide=
#./lazbuild --pcp=~/.lazarus --add-package --build-all --skip-dependencies --quiet --recursive --build-ide=
echo "***********************************************"
echo "* The automated update *"
echo "* is *"
echo "* finished! :) *"
echo "* *"
echo "* Open Lazarus in menu of your system. *"
echo "* *"
echo "* Please, now follow see this thread: *"
echo "***********************************************"
echo ""
echo "Enjoy!"