2005-08-05 04:02:24 +04:00
|
|
|
#!/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
|
2005-09-08 12:23:26 +04:00
|
|
|
rm -rf minimo
|
|
|
|
rm -f minimo.zip
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
echo Copying over files from OBJDIR
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir minimo
|
|
|
|
cp -a bin/minimo.exe minimo
|
2005-10-20 20:54:40 +04:00
|
|
|
cp -a bin/minimo_runner.exe minimo
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir -p minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/chrome/classic.jar minimo/chrome
|
|
|
|
cp -a bin/chrome/classic.manifest minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/chrome/en-US.jar minimo/chrome
|
|
|
|
cp -a bin/chrome/en-US.manifest minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/chrome/minimo.jar minimo/chrome
|
|
|
|
cp -a bin/chrome/minimo.manifest minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/chrome/toolkit.jar minimo/chrome
|
|
|
|
cp -a bin/chrome/toolkit.manifest minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir -p minimo/components
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/components/nsDictionary.js minimo/components
|
|
|
|
cp -a bin/components/nsXmlRpcClient.js minimo/components
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a bin/extensions/spatial-navigation@extensions.mozilla.org/components/* minimo/components
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir -p minimo/greprefs
|
|
|
|
cp -a bin/greprefs/* minimo/greprefs
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir -p minimo/res
|
|
|
|
cp -a bin/res/* minimo/res
|
|
|
|
rm -rf minimo/res/samples
|
|
|
|
rm -rf minimo/res/throbber
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
mkdir -p minimo/plugins
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
echo Linking XPT files.
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
host/bin/host_xpt_link minimo/components/all.xpt bin/components/*.xpt
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
echo Chewing on chrome
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cd minimo/chrome
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-12-03 08:51:16 +03:00
|
|
|
unzip toolkit.jar
|
|
|
|
rm -rf toolkit.jar
|
|
|
|
rm -rf content/passwordmgr
|
|
|
|
rm -rf content/mozapps
|
|
|
|
rm -rf content/help
|
|
|
|
zip -0 -r toolkit.jar content
|
|
|
|
rm -rf content
|
|
|
|
|
2005-08-05 04:02:24 +04:00
|
|
|
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
|
2005-12-03 08:51:16 +03:00
|
|
|
zip -0 -r classic.jar skin
|
2005-08-05 04:02:24 +04:00
|
|
|
rm -rf skin
|
|
|
|
|
|
|
|
unzip en-US.jar
|
|
|
|
rm -rf en-US.jar
|
|
|
|
rm -rf locale/en-US/communicator
|
|
|
|
rm -rf locale/en-US/navigator
|
2005-12-03 08:51:16 +03:00
|
|
|
zip -0 -r en-US.jar locale
|
2005-08-05 04:02:24 +04:00
|
|
|
rm -rf locale
|
|
|
|
|
|
|
|
echo Copying over customized files
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd $SRCDIR
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
cp -a ../customization/all.js $OBJDIR/dist/minimo/greprefs
|
2005-12-03 08:51:16 +03:00
|
|
|
cp -a ../customization/HelperAppDlg.js $OBJDIR/dist/minimo/components
|
2005-08-05 04:02:24 +04:00
|
|
|
|
2005-11-15 03:20:55 +03:00
|
|
|
cat ../customization/ua.css.additions >> $OBJDIR/dist/minimo/res/ua.css
|
|
|
|
|
2006-01-18 22:20:42 +03:00
|
|
|
#echo Copying ARM shunt lib. Adjust if you are not building ARM
|
|
|
|
#
|
|
|
|
#cp -a ../../build/wince/shunt/build/ARMV4Rel/shunt.dll $OBJDIR/dist/minimo
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
echo Rebasing
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
pushd $OBJDIR/dist/minimo
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
rebase -b 0x0100000 -R . -v *.dll components/*.dll
|
|
|
|
|
2005-09-08 12:23:26 +04:00
|
|
|
#
|
|
|
|
# echo Zipping
|
|
|
|
#
|
|
|
|
# zip -r $OBJDIR/dist/minimo.zip $OBJDIR/dist/minimo
|
|
|
|
#
|
2005-08-05 04:02:24 +04:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
echo Done.
|