Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1329 → Rev 1330

/mozilla/movetofolder/trunk/bin/deploy.sh
1,17 → 1,13
#!/bin/sh
 
T="$1"
D="$(dirname $0)/.."
P=mozilla/movetofolder
N=movetofolder.xpi
project_dir=$(dirname $0)"/.."
project_dir=$(cd "$project_dir"; pwd)
common_dir="$project_dir/../../common/deploy"
 
if [ -z "$T" ] ; then
echo "Need one parameter - the target web dir" >> /dev/stderr
return 1
if [ ! -d "$common_dir" ] ; then
echo "Common dir '$common_dir' not found" >> /dev/stderr
exit 1
fi
 
rm -f "$T/$P/$N"
(cd "$D/src"; find . -not -path '*/.svn*' | zip -@ - ) > "$T/$P/$N"
. "$common_dir/deploy_subr"
 
cp "$D/update.rdf" "$T/$P"