On Sat, 06 Dec 2003 17:40:16 +0100
Pierre-Fran�ois Gomez <[EMAIL PROTECTED]> wrote:
> At Sat, 6 Dec 2003 16:56:37 +0100,
> Spider wrote:
> > Might I suggest a nice -n +20 too ?
>
> It sounds like a good idea, yes ;-)
I have a little script I run called update-sync.sh
#!/bin/bash
# script to take care of housekeeping when doing
# portage update.
#
# This is a function to do the sed stuff.
sedit() {
TMP_FILE="/tmp/`basename $2`.$$.$RANDOM"
# this file shouldn't exist, but just in case
if [ -e "$TMP_FILE" ]; then
rm -rf $TMP_FILE
fi
cp $2 $TMP_FILE
sed "$1" $TMP_FILE > $2
rm -rf $TMP_FILE
}
# get the latest portage update
emerge sync
# check if xfce4-session is still masked; since I have
# emerged xfce4-session it will generate depends errors
# if not unmasked.
# not needed at the moment since I installed latest cvs build.
#echo "Checking if xfce4-session ebuild needs to be changed."
#echo
#for f in `ls /usr/portage/xfce-base/xfce4-session/xfce4-session*`; do
# test1=`grep ~x86 $f`
# if [ ! -n "$test1" ]; then
# sedit "s/-\*/~x86/g" $f
# echo "Changed $f"
# echo
# fi
#done
# update the esearch database
echo "Updating esearch database."
echo
eupdatedb
# let's see what's new!
echo "Checking for new updates and dependencies."
echo
emerge -UupD world
# end script
The part about xfce4-session I threw in because I was having to edit the
ebuild by hand every time I did "emerge sync", it could be used for
other purposes, I suppose =)
--
______________________________________
/ The speed of anything depends on the \
\ flow of everything. /
--------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
--
[EMAIL PROTECTED] mailing list