Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1409 → 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"
/mozilla/common/deploy/update.xsl
33,7 → 33,6
<em:minVersion><xsl:value-of select="r:Description/em:minVersion" /></em:minVersion>
<em:maxVersion><xsl:value-of select="r:Description/em:maxVersion" /></em:maxVersion>
<em:updateLink><xsl:copy-of select="$updateLink" /></em:updateLink>
<em:updateHash></em:updateHash>
</r:Description>
</em:targetApplication>
</xsl:for-each>
43,7 → 42,6
</em:updates>
<em:version><xsl:value-of select="em:version" /></em:version>
<em:updateLink><xsl:copy-of select="$updateLink" /></em:updateLink>
<em:updateHash></em:updateHash>
</r:Description>
</xsl:for-each>
</r:RDF>