File:  [mozdev] / annozilla / service / Makefile
Revision 1.19: download - view: text, annotated - select for diffs - revision graph
Tue Jul 20 19:29:10 2010 UTC (7 years, 3 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
install.rdf

XPI=../downloads/annotations-latest.xpi
COMPRESS = zip
SOURCE=chrome.manifest install.rdf components/*.js

$(XPI): versioncheck $(SOURCE)
	$(COMPRESS) $(XPI) $(SOURCE)

clean:
	rm $(XPI)

build: $(XPI)
	BUILD=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
	mv $(XPI) ../downloads/annotations-$$BUILD.xpi

versioncheck:
	INSTALL_RDF=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
    INSTALL_COMPONENT=`perl -n -e 'print $$1 if /const NS_ANNOTATIONS_SERVICE_VERSION = "(.*)"/' components/nsAnnotationsService.js` ;\
    perl -e "die 'Version incompatibility $$INSTALL_RDF/$$INSTALL_COMPONENT' unless $$INSTALL_RDF eq $$INSTALL_COMPONENT"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>