File:  [mozdev] / annozilla / src / makefile
Revision 1.13: download - view: text, annotated - select for diffs - revision graph
Tue Jun 27 19:44:57 2006 UTC (13 years, 7 months ago) by matthew
Branches: MAIN
CVS tags: HEAD
Add Japanese locale, helpfiles

    1: COMPRESS = perl zip.pl
    2: XPI = ../downloads/annozilla-latest.xpi
    3: 
    4: HELPFILES = locale/en-US/annozilla/help/creating.xhtml \
    5:             locale/en-US/annozilla/help/editing.xhtml \
    6:             locale/en-US/annozilla/help/firefox-editor.png \
    7:             locale/en-US/annozilla/help/general.xhtml \
    8:             locale/en-US/annozilla/help/help.css \
    9:             locale/en-US/annozilla/help/index.xhtml \
   10:             locale/en-US/annozilla/help/languages.xhtml \
   11:             locale/en-US/annozilla/help/loading.xhtml \
   12:             locale/en-US/annozilla/help/preferences.xhtml \
   13:             locale/en-US/annozilla/help/product-firefox.png \
   14:             locale/en-US/annozilla/help/product-mozilla.png \
   15:             locale/en-US/annozilla/help/servers.xhtml \
   16:             locale/en-US/annozilla/help/viewing.xhtml
   17: 
   18: SOURCE = content/annozilla/* \
   19:          content/annozilla/about/* \
   20:          content/annozilla/editor/* \
   21:          content/annozilla/icons/* \
   22:          content/annozilla/prefs/* \
   23:          content/annozilla/prefs/firefox/* \
   24:          locale/en-US/annozilla/* \
   25:          locale/fr-FR/annozilla/* \
   26:          locale/ja-JP/annozilla/*
   27: 
   28: xpi: versioncheck install.js install.rdf chrome/annozilla.jar
   29: 	$(COMPRESS) $(XPI) install.js install.rdf chrome/annozilla.jar
   30: 
   31: chrome/annozilla.jar: $(HELPFILES) $(SOURCE)
   32: 	$(COMPRESS) chrome/annozilla.jar \
   33: 	    $(HELPFILES) \
   34: 	    `find content/annozilla -name CVS -prune -o -name '*.bak' -o -name Thumbs.db -prune -o -name '.#*' -prune -o -type f -print` \
   35: 	    `find locale -name CVS -prune -o -name '*.bak' -prune -o -type f -print`
   36: 
   37: locale/en-US/annozilla/help/%: ../www/manual/en-US/%
   38: 	cp $< $@
   39: 
   40: versioncheck:
   41: 	INSTALL_JS=`perl -n -e 'print $$1 if /<em:version>(.*)<\/em:version>/' install.rdf` ;\
   42: 	INSTALL_RDF=`perl -n -e 'print $$1 if /const myProductRegVersion = "(.*)";/' install.js` ;\
   43: 	ABOUT_XUL=`perl -n -e 'print $$1 if /<label id="version" value="(.*)"\/>/' content/annozilla/about/aboutAnnozilla.xul` ;\
   44:         perl -e "die 'Version incompatibility $$INSTALL_JS/$$INSTALL_RDF/$$ABOUT_XUL' unless $$INSTALL_JS eq $$INSTALL_RDF and $$INSTALL_JS eq $$ABOUT_XUL"
   45: 
   46: install: xpi
   47: 	cp $(XPI) 'c:/Documents and Settings/matthew/Application Data/Firefox/Profiles/default/xrh4z19c.slt/extensions/'
   48: 

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