author | Michael Krelin <hacker@klever.net> | 2008-06-28 20:32:41 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-06-28 20:32:41 (UTC) |
commit | 67d1afa3006aa8b9956fa955322ace45a8f8e56e (patch) (unidiff) | |
tree | aca587148f6500033109e203842342bea09957a4 /Makefile.am | |
parent | 2006dedac467448e2f58964244d26d0c22129a83 (diff) | |
download | fireflix-67d1afa3006aa8b9956fa955322ace45a8f8e56e.zip fireflix-67d1afa3006aa8b9956fa955322ace45a8f8e56e.tar.gz fireflix-67d1afa3006aa8b9956fa955322ace45a8f8e56e.tar.bz2 |
provisions for signing
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 06aeaae..a3236ce 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,38 +1,41 @@ | |||
1 | SUBDIRS = content locale | 1 | SUBDIRS = content locale |
2 | 2 | ||
3 | xpi_DATA = \ | 3 | xpi_DATA = \ |
4 | install.rdf \ | 4 | install.rdf \ |
5 | AUTHORS COPYING NEWS | 5 | AUTHORS COPYING NEWS |
6 | 6 | ||
7 | EXTRA_DIST = NEWS NEWS.xml NEWS.xsl chrome.manifest | 7 | EXTRA_DIST = NEWS NEWS.xml NEWS.xsl chrome.manifest |
8 | 8 | ||
9 | XPI=${PACKAGE}-${VERSION}.xpi | 9 | XPI=${PACKAGE}-${VERSION}.xpi |
10 | 10 | ||
11 | xpi: ${XPI} | 11 | xpi: ${XPI} |
12 | 12 | ||
13 | ${XPI}: install | 13 | ${XPI}: install |
14 | test -z "${NO_UPDATE}" || sed -i -e '/em:updateURL/d' ${xpidir}/install.rdf | 14 | test -z "${NO_UPDATE}" || sed -i -e '/em:update\(URL\|Key\)/d' ${xpidir}/install.rdf |
15 | cd ${xpichromedir} \ | 15 | cd ${xpichromedir} \ |
16 | && ${ZIP} -r -m ${PACKAGE}.jar */ | 16 | && ${ZIP} -r -m ${PACKAGE}.jar */ |
17 | cd ${xpidir} \ | 17 | cd ${xpidir} \ |
18 | && ${ZIP} -r @abs_builddir@/$@ . | 18 | && ${ZIP} -r @abs_builddir@/$@ . |
19 | 19 | ||
20 | update.rdf: update-template.rdf ${XPI} | ||
21 | sed -e "s/<!--SHA1-->/$$(sha1sum ${XPI}|cut -d\ -f1)/" <$< >$@ | ||
22 | |||
20 | install-data-local: ${xpidir}/chrome.manifest | 23 | install-data-local: ${xpidir}/chrome.manifest |
21 | 24 | ||
22 | ${xpidir}/chrome.manifest: chrome.manifest Makefile | 25 | ${xpidir}/chrome.manifest: chrome.manifest Makefile |
23 | sed \ | 26 | sed \ |
24 | -e 's,^content[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)$$,content \1 jar:chrome/${PACKAGE}.jar!/\2,' \ | 27 | -e 's,^content[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)$$,content \1 jar:chrome/${PACKAGE}.jar!/\2,' \ |
25 | -e 's,^locale[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)$$,locale \1 \2 jar:chrome/${PACKAGE}.jar!/\3,' \ | 28 | -e 's,^locale[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+\([^[:space:]]\+\)$$,locale \1 \2 jar:chrome/${PACKAGE}.jar!/\3,' \ |
26 | $< >$@ | 29 | $< >$@ |
27 | 30 | ||
28 | clean-local: | 31 | clean-local: |
29 | rm -rf ${xpidir} ${XPI} | 32 | rm -rf ${xpidir} ${XPI} |
30 | 33 | ||
31 | all-local: NEWS | 34 | all-local: NEWS |
32 | 35 | ||
33 | NEWS: NEWS.xsl NEWS.xml | 36 | NEWS: NEWS.xsl NEWS.xml |
34 | ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml | 37 | ${XSLTPROC} -o $@ NEWS.xsl NEWS.xml |
35 | 38 | ||
36 | mozextptr: ${MOZ_EXT_ID} | 39 | mozextptr: ${MOZ_EXT_ID} |
37 | ${MOZ_EXT_ID}: | 40 | ${MOZ_EXT_ID}: |
38 | echo @abs_srcdir@ >$@ | 41 | echo @abs_srcdir@ >$@ |