forked from bgirard/Gecko-Profiler-Addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·61 lines (52 loc) · 1.17 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
if [ ! -d "sdk" ]; then
echo "Must download the sdk first:"
echo "git clone https://github.com/mozilla/addon-sdk sdk"
echo "cd sdk && git checkout 1.4 && cd .."
exit
fi
cd sdk
. ./bin/activate
cd ..
# Check if a custom build is found first
#if [ -e /Applications/Earlybird.app ]
#then
# cfx run -a thunderbird --binary /Applications/Earlybird.app
# exit
#fi
if [ -e /home/v/Downloads/firefox/firefox ]
then
cfx run --binary /home/v/Downloads/firefox/firefox
exit
fi
if [ -e ./firefox/firefox ]
then
cfx run --binary ./firefox/firefox
exit
fi
if [ -e ~/firefox/firefox ]
then
cfx run --binary ~/firefox/firefox
exit
fi
if [ -e /Users/bgirard/mozilla/mozilla-central/builds/obj-ff-64gdb/dist/Nightly.app ]
then
echo "64 gdb"
cfx run --binary /Users/bgirard/mozilla/mozilla-central/builds/obj-ff-64gdb/dist/Nightly.app
exit
fi
if [ -e /Volumes/Nightly/FirefoxNightly.app ]
then
echo Nightly
cfx run --binary /Volumes/Nightly/FirefoxNightly.app
exit
fi
# or use nightly
if [ -e /Applications/FirefoxNightly.app ]
then
echo Nightly
cfx run --binary /Applications/FirefoxNightly.app
exit
fi
echo "Unable to find a firefox installation!"
exit 1