File:  [mozdev] / foxfm / buildXpi.sh
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Fri Sep 7 19:19:39 2012 UTC (7 years, 1 month ago) by kabeleced
Branches: MAIN
CVS tags: HEAD
- set ADDON_TAG to foxfm 0.18.0

#!/bin/bash

ADDON=foxfm
ADDON_TAG=$ADDON"_0-18-0"
DIR_PWD=`pwd`
DIR_SRC_XPI=src
DIR_BUILD_XPI=build
DIR_DOWNLOAD_XPI=downloads

echo "Build XPI file for addon '$ADDON':"

echo "...change to $DIR_PWD/$DIR_SRC_XPI"
cd $DIR_PWD/$DIR_SRC_XPI

echo "...tag all files in $DIR_PWD/$DIR_SRC_XPI with tag '$ADDON_TAG'"
cvs tag $ADDON_TAG

echo "...change to $DIR_PWD/$DIR_BUILD_XPI"
mkdir $DIR_PWD/$DIR_BUILD_XPI
cd $DIR_PWD/$DIR_BUILD_XPI

echo "...checkout $ADDON_TAG"
cvs -z3 -d :pserver:kabeleced@mozdev.org:/cvs co -r $ADDON_TAG -d $ADDON_TAG $ADDON/src 
echo -n "."

echo "...change to $ADDON_TAG"
cd $ADDON_TAG
echo -n "."

echo "...create .xpi file $DIR_PWD/$DIR_DOWNLOAD_XPI/$ADDON_TAG.xpi"
zip -rx'CVS/*' $DIR_PWD/$DIR_DOWNLOAD_XPI/$ADDON_TAG.xpi ./*


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