#!/bin/sh # Your home directory, or the directory you wanna build this around dir="/home/sam"; # Where you want flash to live in between mozilla instances flashdir="$dir/flash_linux"; # Where you want to unpack the Mozilla tarball mozpar="$dir/build"; # The directory that the Mozilla tarball will create mozdir="$dir/build/mozilla"; rm "$dir/"mozilla-i686-pc-linux-gnu.tar.gz cd $dir wget http://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-i686-pc-linux-gnu.tar.gz if [ !? = 1 ] ; then echo "Problems getting mozilla. The old one is still there." exit 1 fi rm -rf $mozdir cd $mozpar tar xvzf $dir/mozilla-i686-pc-linux-gnu.tar.gz if [ "${1}" = "-check" ] ; then rm -rf $dir/.mozilla/ fi if [ -d "$flashdir" ] ; then cp $flashdir/libflashplayer.so $mozdir/plugins cp $flashdir/ShockwaveFlash.class $mozdir/plugins else cd $dir wget http://download.macromedia.com/pub/shockwave/flash/english/linux/5.0r47/flash_linux.tar.gz tar xvzf flash_linux.tar.gz cp $flashdir/libflashplayer.so $mozdir/plugins cp $flashdir/ShockwaveFlash.class $mozdir/plugins fi echo "cd to $mozdir and run ./run-mozilla.sh"