38 lines
616 B
Bash
38 lines
616 B
Bash
|
#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'
|
||
|
|