Rev 1331 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1331 | Rev 1425 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | fi |
16 | fi |
17 | if [ -z "$META_webDir" ] ; then |
17 | if [ -z "$META_webDir" ] ; then |
18 | echo "webDir not defined in meta.xml" >> /dev/stderr |
18 | echo "webDir not defined in meta.xml" >> /dev/stderr |
19 | exit 2 |
19 | exit 2 |
20 | fi |
20 | fi |
21 | if [ -z "$META_keyDir" ] ; then |
- | |
22 | echo "keyDir not defined in meta.xml" >> /dev/stderr |
- | |
23 | exit 2 |
- | |
24 | fi |
- | |
25 | if [ -z "$META_spockExec" ] ; then |
- | |
26 | echo "spock not defined in meta.xml" >> /dev/stderr |
- | |
27 | exit 2 |
- | |
28 | fi |
- | |
29 | if [ -z "$META_id" ] ; then |
21 | if [ -z "$META_id" ] ; then |
30 | echo "id of the exception is unknown" >> /dev/stderr |
22 | echo "id of the exception is unknown" >> /dev/stderr |
31 | exit 2 |
23 | exit 2 |
32 | fi |
24 | fi |
33 | 25 | ||
34 | # convert paths to abs |
- | |
35 | [ -z "${META_keyDir%%/*}" ] || META_keyDir="$project_dir/$META_keyDir" |
- | |
36 | [ -z "${META_spockExec%%/*}" ] || META_spockExec="$project_dir/$META_spockExec" |
- | |
37 | - | ||
38 | # cleanup |
26 | # cleanup |
39 | mkdir -p "$build_dir" |
27 | mkdir -p "$build_dir" |
40 | rm -f "$build_dir"/* |
28 | rm -f "$build_dir"/* |
41 | 29 | ||
42 | (cd "$project_dir/src"; find . -not -path '*/.svn*' | zip -q -@ "$build_dir/$META_xpiName" ) |
30 | (cd "$project_dir/src"; find . -not -path '*/.svn*' | zip -q -@ "$build_dir/$META_xpiName" ) |
43 | 31 | ||
44 | xsltproc --stringparam dir "$project_dir" "$common_dir/update.xsl" "$project_dir/src/install.rdf" \ |
32 | xsltproc --stringparam dir "$project_dir" "$common_dir/update.xsl" "$project_dir/src/install.rdf" \ |
45 | > "$build_dir/update.rdf_unsigned" |
- | |
46 | - | ||
47 | "$META_spockExec" "$build_dir/update.rdf_unsigned" -i "urn:mozilla:extension:$META_id" \ |
- | |
48 | -d "$META_keyDir" -f "$build_dir/$META_xpiName" \ |
- | |
49 | > "$build_dir/update.rdf" \ |
33 | > "$build_dir/update.rdf" |
50 | && rm "$build_dir/update.rdf_unsigned" |
- | |
51 | 34 | ||
52 | case "$META_deployMethod" in |
35 | case "$META_deployMethod" in |
53 | scp) |
36 | scp) |
54 | scp "$build_dir"/* "$META_webDir" |
37 | scp "$build_dir"/* "$META_webDir" |
55 | ;; |
38 | ;; |