Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (21 sloc) 0.739 kb
#!/bin/bash
APP_NAME=preflight # short-name, jar and xpi files name. Must be lowercase with no spaces
CHROME_PROVIDERS="content" # which chrome providers we have (space-separated list)
ROOT_DIRS="defaults" # ...and these directories (space separated list)
ROOT_DIR=`pwd`
TMP_DIR=build
# remove any left-over files from previous build
rm -f $APP_NAME.jar $APP_NAME.xpi
rm -rf $TMP_DIR
mkdir -p $TMP_DIR/chrome/content
cp -v -R content $TMP_DIR/chrome
cp -v -R locale $TMP_DIR/chrome
cp -v -R skin $TMP_DIR/chrome
cp -v -R defaults $TMP_DIR
cp -v install.rdf $TMP_DIR
cp -v chrome.manifest $TMP_DIR
# generate the XPI file
cd $TMP_DIR
echo "Generating $APP_NAME.xpi..."
zip -r ../$APP_NAME.xpi *
cd "$ROOT_DIR"
Jump to Line
Something went wrong with that request. Please try again.