bump tbb windows version
[torbrowser/rransom.git] / build-scripts / configure-firefox.sh
blobb6abaf96c1c1d97892611d1970dcfe1db05634f0
1 #!/bin/sh
2 ## This is a little sanity providing app that when run in a loop it will:
3 ## 1) Setup the environment properly
4 ## 2) Change to the proper $HOME directory
5 ## 3) Install a single .xpi or Firefox extension
6 ## 4) Profit!
7 ##
9 # Here's where Make puts us
10 STARTDIR="`pwd`";
11 # This is the bundle we want to tamper with
12 BUNDLE="$1";
13 echo "BUNDLE is: $BUNDLE"
15 # This is the full path to the extension we want to install
16 EXTENSION="$STARTDIR/$2";
18 # Here's a relative path to our custom Firefox
19 FIREFOX="./App/Firefox/firefox";
20 # Here's what we think should properly install a plugin
21 #FIREFOX_ARGS="-profile default -install-global-extension ";
22 FIREFOX_ARGS=" -install-global-extension ";
24 # Now we'll switch into the bundle we wish to tamper with
25 cd "$BUNDLE";
26 # Now if we were running the bundle, we'd have our CWD as HOME
27 export HOME=$PWD;
28 echo "We're now in (HOME): $PWD"
29 export LDPATH=$HOME/Lib/
30 echo "Attemping to properly configure LDPATH..."
31 echo $LDPATH
32 export LD_LIBRARY_PATH=$HOME/Lib/
33 echo "Attemping to properly configure LD_LIBRARY_PATH..."
35 # Here's where we actually tell firefox to install this extension
36 echo "Attempting to run: $FIREFOX $FIREFOX_ARGS $EXTENSION";
37 $FIREFOX $FIREFOX_ARGS $EXTENSION;
38 echo "Firefox said: $?";
39 echo