[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kde build script extra advanced
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-04-30 20:04:55
[Download RAW message or body]

On Sun, Apr 30, 2000 at 10:01:46PM +0200, Thomas Zander wrote:
> 
> Hi, I rewrote the kde-build script because it just took me far toooo long 
> to make kde.
> 
> Main problem is that if you make install kdelibs lots of stuff in kdebase is
> recompiled. So I only do a make install if something has changed in that \
> directory..

export INSTALL='/usr/bin/install -p' does the same ;-)

David.

> ps, you might want to change that make line "make -j 4 MAKE=\"make -j 4\"" to a 
> more appropriate value.
> 
> script :
> 
> #!/bin/bash
> 
> ## Script to compile KDE
> ## Created from scratch by Thomas Zander (zander@earthling.net)
> 
> # user is the username which the sources belong to, this user is used
> # to run the make commands so the created files (*.o etc) are owner $user
> user=zander
> 
> KDEDIR=/home/zander/kde2
> QTDIR=/home/zander/sources/qt-public-cvs
> PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:$KDEDIR/bin/
> export KDEDIR QTDIR PATH
> 
> OPTS=" --with-shadow --without-gl"
> 
> #packages to compile
> 
> packages="kdesupport kde-qt-addon kdelibs kdebase kdegraphics"
> #packages="kdesupport kde-qt-addon kdelibs kdebase kdegraphics kdeutils kdeadmin \
> kdenetwork kdevelop koffice korganizer" 
> # dont change anything below this line
> 
> if test `/usr/bin/id -u` != 0; then
> echo "Must be root to call this"
> exit
> fi
> 
> rm -f progress
> # so we can do a tail -f immediately ;-)
> date >> progress
> touch building_kde
> 
> for package in $packages ; do
> echo "Entering $package" >>progress
> (cd $package &&
> if test ! -e admin ; then
> if test -e ../kde-common/admin ; then
> su -c "ln -s ../kde-common/admin ." $user
> fi
> fi
> if test ! -e Makefile ; then
> su -c "make -f Makefile.cvs" $user
> su -c "./configure $OPTS" $user
> fi
> su -c "make -j 4 MAKE=\"make -j 4\"" $user && echo "made $package successfully" \
> >>../progress 
> if test Makefile -ot ../building_kde; then
> # now for the fun thing: only run the make install if the dir is newer than our \
> checkfile: building_kde # and run the make install as root.
> for i in `find  -type d -newer ../building_kde | grep -v '/\.' | perl -ne 'chomp; \
> if($first eq "" || !/^$first/){$first=$_; print "$first\n";}'`; do (cd $i && make \
> install) echo "doing make install in: $i" >> ../progress
> done
> else
> echo "doing make install in: $package" >> ../progress
> make install
> fi)
> echo "installed $package successfully" >>progress
> done
> 
> rm -f building_kde
> date >> progress
> more progress
> 
> --
> Thomas Zander                                            zander@earthling.net
> Here it was, a new hour, new day. Time all moments from this moment, all 
> beginnings from here. I opened the door and smiled.  -Me     OpenPGP : 0588D5 

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic