File:  [mozdev] / annozilla / src / makefile
Revision 1.12: download - view: text, annotated - select for diffs - revision graph
Thu Dec 29 12:28:30 2005 UTC (13 years, 10 months ago) by matthew
Branches: MAIN
CVS tags: HEAD, ANNOZILLA-0-6-5
Check the various declarations of the version number are consistent

XPI = ../downloads/annozilla-latest.xpi

SOURCE = content/annozilla/* \
         content/annozilla/about/* \
         content/annozilla/editor/* \
         content/annozilla/icons/* \
         content/annozilla/prefs/* \
         content/annozilla/prefs/firefox/* \
         locale/en-US/annozilla/* \
         locale/fr-FR/annozilla/*

COMPRESS = perl zip.pl

xpi: versioncheck install.js install.rdf chrome/annozilla.jar
	$(COMPRESS) $(XPI) install.js install.rdf chrome/annozilla.jar

chrome/annozilla.jar: $(SOURCE)
	$(COMPRESS) chrome/annozilla.jar \
	    `find content/annozilla -name CVS -prune -o -name '*.bak' -o -name Thumbs.db -prune -o -name '.#*' -prune -o -type f -print` \
	    `find locale -name CVS -prune -o -name '*.bak' -prune -o -type f -print`

versioncheck:
	INSTALL_JS=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
	INSTALL_RDF=`perl -n -e 'print $$1 if /const myProductRegVersion = "(.*)";/' install.js` ;\
	ABOUT_XUL=`perl -n -e 'print $$1 if /<label id="version" value="(.*)"\/>/' content/annozilla/about/aboutAnnozilla.xul` ;\
        perl -e "die 'Version incompatibility $$INSTALL_JS/$$INSTALL_RDF/$$ABOUT_XUL' unless $$INSTALL_JS eq $$INSTALL_RDF and $$INSTALL_JS eq $$ABOUT_XUL"

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