Created
April 22, 2009 17:40
-
-
Save hail2u/99943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# build.sh - tiny bash script for packaging Firefox extension | |
# based on: http://kb.mozillazine.org/Bash_build_script | |
NAME=bookmark-all | |
DIRS="content locale skin" | |
FILES="LICENSE" | |
TEMP_DIR=build | |
FILES="$FILES chrome.manifest install.rdf" | |
rm -rf $TEMP_DIR | |
mkdir $TEMP_DIR | |
cp -r $DIRS $FILES $TEMP_DIR | |
cd $TEMP_DIR | |
7za a -tzip "$NAME.xpi" -mx=9 * -r > /dev/null 2>&1 | |
# zip -rq9X "$NAME.xpi" * | |
cp $NAME.xpi .. | |
cd .. | |
rm -rf $TEMP_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment