Create script file to create firefox extension for linux

This commit is contained in:
Jim Norman 2006-05-30 16:12:59 +00:00
parent 5699a1986f
commit dfe0df83bd
3 changed files with 37 additions and 26 deletions

View File

@ -1,3 +0,0 @@
cd src
make
cd ..

View File

@ -1,23 +0,0 @@
if (mk-xpcom)
then
echo
else
echo '**** make xpcom failed *****'
fi
if (mk-jar)
then
echo
else
echo '**** make casa.jar failed ****'
#exit 1
fi
cp casa.jar xpi/chrome/.
cp src/MiCASAKeys.so xpi/components/.
cd xpi
zip -rD casa4linux.xpi *
mv casa4linux.xpi ../.
cd ..

37
extensions/mk-linuxxpi.sh Executable file
View File

@ -0,0 +1,37 @@
#make the .so library (xpcom)
cd linux/src
make
cd ../..
#copy all files to a temp directory
rm -rf temp
mkdir temp
cp -r common temp
cp -r linux temp
cd temp
#remove all svn stuff
echo 'Removing svn stuff'
find . -name "*svn*" |xargs rm -rf
#build the casa.jar
cd common/casajar
zip -rD casa.jar *
mv casa.jar ../.
#copy files to correct location
cd ../..
cp linux/src/MiCASAKeys.so linux/xpi/components/.
cp common/casa.jar linux/xpi/chrome/.
#now zip up the xpi
cd linux/xpi
echo 'creating XPI'
zip -rD casa4linux.xpi *
# copy xpi to extensions folder
cp casa4linux.xpi ../../../.
cd ../../..
echo 'Done'