#!/bin/sh
#
# Netscape6 postinstall script
#

installedchrometxt=$BASEDIR/SUNWns6/chrome/installed-chrome.txt
alllocalesrdf=$BASEDIR/SUNWns6/chrome/all-locales.rdf

cd $BASEDIR/SUNWns6/chrome

# update installed-chrome.txt
rm -f $installedchrometxt
for i in `ls installed-chrome.txt.*`
do
	if [ -f "$i" ]
	then
		cat $i >> $installedchrometxt
	fi
done

# update all-locales.rdf
rm -f $alllocalesrdf
LD_LIBRARY_PATH=$BASEDIR/SUNWns6:$BASEDIR/SUNWns6/dist/lib
MOZILLA_FIVE_HOME=$BASEDIR/SUNWns6
export LD_LIBRARY_PATH MOZILLA_FIVE_HOME
$MOZILLA_FIVE_HOME/regchrome

exit 0
