pjs/minimo/config/wince_package.sh

122 строки
2.9 KiB
Bash
Исходник Обычный вид История

#!/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
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-09-08 12:23:26 +04:00
mkdir -p minimo/chrome
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-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-09-08 12:23:26 +04:00
cp -a bin/chrome/minimo.jar minimo/chrome
cp -a bin/chrome/minimo.manifest minimo/chrome
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-09-08 12:23:26 +04:00
mkdir -p minimo/components
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-09-08 12:23:26 +04:00
cp -a bin/extensions/spatial-navigation@extensions.mozilla.org/components/* minimo/components
2005-09-08 12:23:26 +04:00
mkdir -p minimo/greprefs
cp -a bin/greprefs/* minimo/greprefs
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-09-08 12:23:26 +04:00
mkdir -p minimo/plugins
echo Linking XPT files.
2005-09-08 12:23:26 +04:00
host/bin/host_xpt_link minimo/components/all.xpt bin/components/*.xpt
echo Chewing on chrome
2005-09-08 12:23:26 +04:00
cd minimo/chrome
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
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 -0 -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 -0 -r en-US.jar locale
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
cp -a ../customization/HelperAppDlg.js $OBJDIR/dist/minimo/components
cat ../customization/ua.css.additions >> $OBJDIR/dist/minimo/res/ua.css
#echo Copying ARM shunt lib. Adjust if you are not building ARM
#
#cp -a ../../build/wince/shunt/build/ARMV4Rel/shunt.dll $OBJDIR/dist/minimo
popd
echo Rebasing
2005-09-08 12:23:26 +04:00
pushd $OBJDIR/dist/minimo
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
#
popd
echo Done.