From dfe0df83bd3eb00c578da492e0d0be8cf9788aa8 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Tue, 30 May 2006 16:12:59 +0000 Subject: [PATCH] Create script file to create firefox extension for linux --- extensions/linux/mk-xpcom.sh | 3 --- extensions/linux/mk-xpi.sh | 23 ---------------------- extensions/mk-linuxxpi.sh | 37 ++++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 26 deletions(-) delete mode 100755 extensions/linux/mk-xpcom.sh delete mode 100755 extensions/linux/mk-xpi.sh create mode 100755 extensions/mk-linuxxpi.sh diff --git a/extensions/linux/mk-xpcom.sh b/extensions/linux/mk-xpcom.sh deleted file mode 100755 index 2d3c7cd9..00000000 --- a/extensions/linux/mk-xpcom.sh +++ /dev/null @@ -1,3 +0,0 @@ -cd src -make -cd .. diff --git a/extensions/linux/mk-xpi.sh b/extensions/linux/mk-xpi.sh deleted file mode 100755 index 0a4374a4..00000000 --- a/extensions/linux/mk-xpi.sh +++ /dev/null @@ -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 .. diff --git a/extensions/mk-linuxxpi.sh b/extensions/mk-linuxxpi.sh new file mode 100755 index 00000000..88d00723 --- /dev/null +++ b/extensions/mk-linuxxpi.sh @@ -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' +