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

    1: XPI = ../downloads/annozilla-latest.xpi
    2: 
    3: SOURCE = content/annozilla/* \
    4:          content/annozilla/about/* \
    5:          content/annozilla/editor/* \
    6:          content/annozilla/icons/* \
    7:          content/annozilla/prefs/* \
    8:          content/annozilla/prefs/firefox/* \
    9:          locale/en-US/annozilla/* \
   10:          locale/fr-FR/annozilla/*
   11: 
   12: COMPRESS = perl zip.pl
   13: 
   14: xpi: versioncheck install.js install.rdf chrome/annozilla.jar
   15: 	$(COMPRESS) $(XPI) install.js install.rdf chrome/annozilla.jar
   16: 
   17: chrome/annozilla.jar: $(SOURCE)
   18: 	$(COMPRESS) chrome/annozilla.jar \
   19: 	    `find content/annozilla -name CVS -prune -o -name '*.bak' -o -name Thumbs.db -prune -o -name '.#*' -prune -o -type f -print` \
   20: 	    `find locale -name CVS -prune -o -name '*.bak' -prune -o -type f -print`
   21: 
   22: versioncheck:
   23: 	INSTALL_JS=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
   24: 	INSTALL_RDF=`perl -n -e 'print $$1 if /const myProductRegVersion = "(.*)";/' install.js` ;\
   25: 	ABOUT_XUL=`perl -n -e 'print $$1 if /<label id="version" value="(.*)"\/>/' content/annozilla/about/aboutAnnozilla.xul` ;\
   26:         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>