Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1424 → Rev 1425

/mozilla/common/deploy/deploy_subr
18,23 → 18,11
echo "webDir not defined in meta.xml" >> /dev/stderr
exit 2
fi
if [ -z "$META_keyDir" ] ; then
echo "keyDir not defined in meta.xml" >> /dev/stderr
exit 2
fi
if [ -z "$META_spockExec" ] ; then
echo "spock not defined in meta.xml" >> /dev/stderr
exit 2
fi
if [ -z "$META_id" ] ; then
echo "id of the exception is unknown" >> /dev/stderr
exit 2
fi
 
# convert paths to abs
[ -z "${META_keyDir%%/*}" ] || META_keyDir="$project_dir/$META_keyDir"
[ -z "${META_spockExec%%/*}" ] || META_spockExec="$project_dir/$META_spockExec"
 
# cleanup
mkdir -p "$build_dir"
rm -f "$build_dir"/*
42,13 → 30,8
(cd "$project_dir/src"; find . -not -path '*/.svn*' | zip -q -@ "$build_dir/$META_xpiName" )
 
xsltproc --stringparam dir "$project_dir" "$common_dir/update.xsl" "$project_dir/src/install.rdf" \
> "$build_dir/update.rdf_unsigned"
> "$build_dir/update.rdf"
 
"$META_spockExec" "$build_dir/update.rdf_unsigned" -i "urn:mozilla:extension:$META_id" \
-d "$META_keyDir" -f "$build_dir/$META_xpiName" \
> "$build_dir/update.rdf" \
&& rm "$build_dir/update.rdf_unsigned"
 
case "$META_deployMethod" in
scp)
scp "$build_dir"/* "$META_webDir"