[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kde update via cron
From: Jelmer Feenstra <spark () dds ! nl>
Date: 2001-05-10 11:48:54
[Download RAW message or body]
On Thursday 10 May 2001 09:06, Rolf Offermanns wrote:
> I would like to have my kde updated from cvs and the compiled and
> installed from a nightly running cron job.
>
> Does anybody has a script for such a task?
>
> How do YOU keep your kde installation uptodate?
This is what I'm running from a cronjob since yesterday, it seems to work :)
Although I'm sure the shellscript won't win a beauty contest heh.
Jelmer Feenstra
-------------------------------------------------------------------
#!/bin/sh
LOG=/home/spark/cvs/anoncvs/kde2/compile.log
QTDIR=/usr/local/qt2
KDEDIR=/usr/local/kde
export KDEDIR QTDIR
cd /home/spark/cvs/anoncvs/kde2
if [ -f $LOG ]; then
rm $LOG
date >> $LOG
fi
if [ -z "$1" ]; then
PACKAGE_LIST="kdesupport kdelibs kdebase kdenetwork kdegraphics"
echo "<*** compiling default packages : $PACKAGE_LIST ***>"
echo "<*** compiling default packages : $PACKAGE_LIST ***>" >> $LOG
else
PACKAGE_LIST=$@
fi
for i in $PACKAGE_LIST
do
if [ -d $i ]; then
cd $i
make -f admin/Makefile.common cvs-clean
cd ..
fi
done
echo "<*** done cleaning the cvs sources ***>"
export CVSROOT=:pserver:anonymous@niihau:/home/kdecvs/kde
cvs up $PACKAGE_LIST
echo "<*** done updating the local cvs sources ***>"
for i in $PACKAGE_LIST
do
PACKAGE=$i
if [ -d $PACKAGE ]; then
cd $PACKAGE
export CXXFLAGS="-fno-exceptions -O3 -march=i386 -mcpu=i686"
echo "<*** compiling with : $CXXFLAGS ***>"
ln -s ../kde-common/admin .
make -f Makefile.cvs
if ./configure --disable-debug --enable-final && make -k && make
-k
install; then
echo "<*** $PACKAGE finished ***>"
echo "<*** $PACKAGE finished ***>" >> $LOG
else
echo "<*** $PACKAGE had problems configuring / compiling /
installing ***>"
echo "<*** $PACKAGE had problems configuring / compiling /
installing ***>" >> $LOG
fi
cd ..
fi
done
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic