3 VERSION
=`grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3`
4 XPI_NAME
=$APP_NAME-$VERSION.xpi
6 if [ -e "pkg/$XPI_NAME" ]; then
7 echo pkg
/$XPI_NAME already exists.
8 rm pkg
/$XPI_NAME # meh.
12 # create jar file (we're just storing files here)
13 echo ---------- create
$APP_NAME.jar
file ----------
15 #zip -r0 ../../$APP_NAME.jar ./ -x "*.svn/*"
19 echo ---------- create
$APP_NAME.xpi
----------
21 echo zip -X -9r ..
/pkg
/$XPI_NAME .
/ -x "certDialogsOverride.js" -x "chrome/*" -x "*.diff" -x "*.svn/*"
22 zip -X -9r ..
/pkg
/$XPI_NAME .
/ -x "certDialogsOverride.js" -x "*.svn/*" -x "*.diff" #-x "chrome/*"
23 #mv ../$APP_NAME.jar ./chrome
24 #zip -9m ../pkg/$XPI_NAME chrome/$APP_NAME.jar
27 #cp ./pkg/$XPI_NAME ~/
28 #zip -9m ../../downloads/$sXpiName chrome/$APP_NAME.jar
29 #zip -9 ../../downloads/$sXpiName install.rdf