diff --git a/minimo/config/linux_package.sh b/minimo/config/linux_package.sh new file mode 100755 index 00000000000..52770bfb2bb --- /dev/null +++ b/minimo/config/linux_package.sh @@ -0,0 +1,121 @@ +#!/bin/bash + +if [ $# -ne 2 ] +then + echo "Usage: `basename $0` OBJDIR SRCDIR" + exit $E_BADARGS +fi + +OBJDIR=$1 +SRCDIR=$2 + +echo --------------------------------------------------- +echo OBJDIR = $OBJDIR +echo SRCDIR = $SRCDIR +echo --------------------------------------------------- + +pushd $OBJDIR/dist +rm -rf minimo +rm -f minimo.zip + +echo Copying over files from OBJDIR + +mkdir minimo +cp -a bin/libmozjs.so minimo +cp -a bin/minimo minimo +cp -a bin/libnspr4.so minimo +cp -a bin/libplc4.so minimo +cp -a bin/libplds4.so minimo +cp -a bin/libxpcom.so minimo +cp -a bin/libxpcom_core.so minimo + +cp -a bin/libnss3.so minimo +cp -a bin/libnssckbi.so minimo +cp -a bin/libsmime3.so minimo +cp -a bin/libsoftokn3.so minimo +cp -a bin/libsoftokn3.chk minimo +cp -a bin/libssl3.dll minimo + + +mkdir -p minimo/chrome + +cp -a bin/chrome/classic.jar minimo/chrome +cp -a bin/chrome/classic.manifest minimo/chrome + +cp -a bin/chrome/en-US.jar minimo/chrome +cp -a bin/chrome/en-US.manifest minimo/chrome + +cp -a bin/chrome/minimo.jar minimo/chrome +cp -a bin/chrome/minimo.manifest minimo/chrome + +cp -a bin/chrome/toolkit.jar minimo/chrome +cp -a bin/chrome/toolkit.manifest minimo/chrome + +cp -a bin/chrome/pippki.jar minimo/chrome +cp -a bin/chrome/pippki.manifest minimo/chrome + +cp -a bin/chrome/installed-chrome.txt minimo/chrome + + +mkdir -p minimo/components + +cp -a bin/components/nsHelperAppDlg.js minimo/components +cp -a bin/components/nsProgressDialog.js minimo/components + +cp -a bin/components/nsDictionary.js minimo/components +cp -a bin/components/nsInterfaceInfoToIDL.js minimo/components +cp -a bin/components/nsXmlRpcClient.js minimo/components + +cp -a bin/extensions/spatial-navigation@extensions.mozilla.org/components/* minimo/components + +mkdir -p minimo/greprefs +cp -a bin/greprefs/* minimo/greprefs + +mkdir -p minimo/res +cp -a bin/res/* minimo/res +rm -rf minimo/res/samples +rm -rf minimo/res/throbber + +mkdir -p minimo/plugins + +echo Linking XPT files. + +host/bin/host_xpt_link minimo/components/all.xpt bin/components/*.xpt + +echo Chewing on chrome + +cd minimo/chrome + +unzip classic.jar +rm -rf classic.jar +rm -rf skin/classic/communicator +rm -rf skin/classic/editor +rm -rf skin/classic/messenger +rm -rf skin/classic/navigator +zip -r classic.jar skin +rm -rf skin + +unzip en-US.jar +rm -rf en-US.jar +rm -rf locale/en-US/communicator +rm -rf locale/en-US/navigator +zip -r en-US.jar locale +rm -rf locale + +echo Copying over customized files + +popd + +pushd $SRCDIR + +cp -a ../customization/all.js $OBJDIR/dist/minimo/greprefs + +popd + +echo Zipping + +zip -r $OBJDIR/dist/minimo.zip $OBJDIR/dist/minimo + +popd + +echo Done.