How about this: (/usr/local/bin/emerge.browsers.bsh)
It sets up the old compiler and the java environment
and a /etc/make.conf that will compile the browsers,
then emerges mozilla, flash, realplayer, and galeon.

Then it puts it all back.

NOTE: I have never been able to build these tools with the new
compiler.  If someone has that incantation please share.

=============================================================
#!/usr/bin/bash

eargs=$1 #for passing args like '-unp' to emerge

cconf=$(gcc-config -c)
#gcc-config i686-pc-linux-gnu-3.2.2
gcc-config i686-pc-linux-gnu-2.95.3

#java-config --set-system-vm=blackdown-jdk-1.4.1
java-config --set-system-vm=sun-jdk-1.4.1.03
#java-config --set-system-vm=ibm-jdk-1.3.1

dt=$(date +%Y.%m.%d.%H.%M.%S)
cp -p /etc/make.conf /etc/make.conf.save.$dt
cat /etc/make.conf.save.$dt \
   | sed 's/^CFLAGS=.*/CFLAGS="-O2 -pipe"/' \
   | sed 's/^MAKEOPTS=.*/MAKEOPTS="-j1"/' \
   | sed 's/^FEATURES=/#FEATURES/' \
   > /etc/make.conf

source /etc/profile
echo "sourced /etc/profile"

cd /
if true; then
   emerge $eargs mozilla netscape-flash realplayer galeon
fi

mv /etc/make.conf /etc/make.conf.otw
mv /etc/make.conf.save.$dt /etc/make.conf

echo "gcc-config $cconf"
gcc-config $cconf



-- 

Lincoln A. Baxter <[EMAIL PROTECTED]>


--
[EMAIL PROTECTED] mailing list

Reply via email to