summaryrefslogtreecommitdiffstats
path: root/testfixlang.sh
blob: a42e3c60ce1337fda9664e761e7f185232bdca2b (plain)
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
#!/bin/bash

set -x 

if [ ! -d /tmp/comm-1.9.2 ]; then
	tar xjf thunderbird-3.1.3.source.tar.bz2 -C /tmp && echo Sources extracted
fi

DIR=/tmp/testfixlang
rm -rf $DIR
mkdir -p $DIR/chrome

touch $DIR/gdata.mani

php ./fixlang.php \
    --xpi=gdata-provider.xpi \
    --gdata-provider=/tmp/comm-1.9.2/calendar/locales/en-US/chrome/calendar/providers/gdata \
    --manifest=/tmp/testfixlang/gdata.mani \
    --output=$DIR \
    --debug=0

touch $DIR/lightning.mani

php ./fixlang.php \
    --xpi=lightning.xpi \
    --lightning=/tmp/comm-1.9.2/calendar/locales/en-US/chrome/lightning \
    --calendar=/tmp/comm-1.9.2/calendar/locales/en-US/chrome/calendar \
    --manifest=/tmp/testfixlang/lightning.mani \
    --output=$DIR \
    --debug=0