Merge branch 'maint-1.2'
[torbutton/rransom.git] / makexpi.sh
blob76e8c54f00a8aea424f71bcd2264f6b52b31fcd8
1 #!/bin/bash
2 APP_NAME=torbutton
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.
9 # exit 1
12 # create jar file (we're just storing files here)
13 echo ---------- create $APP_NAME.jar file ----------
14 cd src/chrome
15 #zip -r0 ../../$APP_NAME.jar ./ -x "*.svn/*"
16 cd ../..
18 # create .xpi
19 echo ---------- create $APP_NAME.xpi ----------
20 cd src
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
25 cd ..
27 #cp ./pkg/$XPI_NAME ~/
28 #zip -9m ../../downloads/$sXpiName chrome/$APP_NAME.jar
29 #zip -9 ../../downloads/$sXpiName install.rdf
30 #cd ..