File:  [mozdev] / forward / src / make-babelzilla.sh
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Apr 4 18:45:02 2016 UTC (3 years, 9 months ago) by oeekker
Branches: MAIN
CVS tags: HEAD
Only update en-US locale on babelzilla

#!/bin/bash
# babelzilla
cd $(dirname $(cygpath -u $(cygpath -m -s "${0}")))/..
[ -d package ] || mkdir package
cd package
rm -fr babelzilla/
rsync -a --exclude-from=../src/make-exclude.txt --exclude 'locale/*' ../src/* babelzilla/
mkdir -p babelzilla/chrome/locale/en-US/
rsync -a --exclude-from=../src/make-exclude.txt ../src/chrome/locale/en-US/* babelzilla/chrome/locale/en-US/
sed -r "s/^#([a-z])/\1/" ../src/chrome/locale/en-US/forward.properties > babelzilla/chrome/locale/en-US/forward.properties
version=$(grep em:version ../src/install.rdf | sed -r "s/^[^\"]*\"//" | sed -r "s/\"[^\"]*$//")
cd babelzilla
rm forward-${version}-tb.xpi 2> /dev/null
zip -r -D forward-${version}-tb.xpi install.rdf chrome.manifest chrome/ defaults/
cd ..
read -p "Press any key to continue . . . " -n 1

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>