pjs/minimo/config/linux_package.sh

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

2005-08-30 04:21:46 +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
rm -rf minimo
2005-09-19 21:54:49 +04:00
rm -f minimo.tar.gz
2005-08-30 04:21:46 +04:00
echo Copying over files from OBJDIR
mkdir minimo
cp -pRL bin/minimo minimo
cp -pRL bin/libnspr4.so minimo
cp -pRL bin/libplc4.so minimo
cp -pRL bin/libplds4.so minimo
cp -pRL bin/libxpcom.so minimo
cp -pRL bin/libxpcom_core.so minimo
cp -pRL bin/libnss3.so minimo
cp -pRL bin/libnssutil3.so minimo
cp -pRL bin/libnssckbi.so minimo
cp -pRL bin/libsmime3.so minimo
cp -pRL bin/libsoftokn3.so minimo
cp -pRL bin/libsoftokn3.chk minimo
cp -pRL bin/libfreebl3.so minimo
cp -pRL bin/libfreebl3.chk minimo
cp -pRL bin/libssl3.so minimo
2005-08-30 04:21:46 +04:00
mkdir -p minimo/chrome
cp -pRL bin/chrome/classic.jar minimo/chrome
cp -pRL bin/chrome/classic.manifest minimo/chrome
2005-08-30 04:21:46 +04:00
cp -pRL bin/chrome/en-US.jar minimo/chrome
cp -pRL bin/chrome/en-US.manifest minimo/chrome
2005-08-30 04:21:46 +04:00
cp -pRL bin/chrome/minimo.jar minimo/chrome
cp -pRL bin/chrome/minimo.manifest minimo/chrome
2005-08-30 04:21:46 +04:00
cp -pRL bin/chrome/toolkit.jar minimo/chrome
cp -pRL bin/chrome/toolkit.manifest minimo/chrome
2005-08-30 04:21:46 +04:00
cp -pRL bin/chrome/pippki.jar minimo/chrome
cp -pRL bin/chrome/pippki.manifest minimo/chrome
2005-08-30 04:21:46 +04:00
mkdir -p minimo/components
cp -pRL bin/components/nsHelperAppDlg.js minimo/components
cp -pRL bin/components/nsProgressDialog.js minimo/components
2005-08-30 04:21:46 +04:00
cp -pRL bin/components/nsDictionary.js minimo/components
cp -pRL bin/components/nsXmlRpcClient.js minimo/components
2005-08-30 04:21:46 +04:00
cp -pRL bin/extensions/spatial-navigation@extensions.mozilla.org/components/* minimo/components
2005-08-30 04:21:46 +04:00
mkdir -p minimo/greprefs
cp -pRL bin/greprefs/* minimo/greprefs
2005-08-30 04:21:46 +04:00
mkdir -p minimo/res
cp -pRL bin/res/* minimo/res
2005-08-30 04:21:46 +04:00
rm -rf minimo/res/samples
rm -rf minimo/res/throbber
mkdir -p minimo/plugins
echo Linking XPT files.
2005-08-30 04:27:57 +04:00
bin/xpt_link minimo/components/all.xpt bin/components/*.xpt
2005-08-30 04:21:46 +04:00
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 -pRL ../customization/all.js $OBJDIR/dist/minimo/greprefs
2005-08-30 04:21:46 +04:00
popd
echo Zipping
2005-09-19 21:54:49 +04:00
tar cvzhf $OBJDIR/dist/minimo_x86_linux.tar.gz $OBJDIR/dist/minimo
2005-08-30 04:21:46 +04:00
echo Done.