Bug #10640: Fix about:tor's pointer position for RTL languages.
[torbutton.git] / makexpi.sh
blob580bcf5df4537aca9e0a84196affb32a5950a85f
1 #!/bin/sh
2 APP_NAME=torbutton
3 #VERSION=`grep em:version src/install.rdf | sed -e 's/["]//g' | cut -f2 -d=`
4 XPI_NAME="$APP_NAME-`grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3`.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 "chrome/*" -x "*.diff" -x "*.svn/*"
22 zip -X -9r ../pkg/$XPI_NAME ./ -x "*.svn/*" -x "*.diff" -x "components/torRefSpoofer.js" #-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 ..