[Pkg-privacy-commits] [xul-ext-monkeysphere] 238/296: autogen install.rdf to make sure version numbers get updated properly

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 5cbd7e6b2b5972e5312df68961e22fd6d5f51359
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Wed May 5 13:02:24 2010 -0400

    autogen install.rdf to make sure version numbers get updated properly
---
 Changelog            | 6 ++++++
 Makefile             | 6 ++++++
 install.rdf.template | 2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Changelog b/Changelog
index ab5f431..ba9a3a3 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,9 @@
+xul-ext-monkeysphere (0.4); urgency=low
+
+  * auto-generate install.rdf to ensure proper version numbers.
+
+ -- Daniel Kahn Gillmor <dkg at fifthhorseman.net>  Wed, 05 May 2010 12:54:14 -0400
+
 xul-ext-monkeysphere (0.3); urgency=low
 
   * Fix clearSite status menu function
diff --git a/Makefile b/Makefile
index 44fa10b..420e2fe 100755
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,14 @@ XPI_CONTENTS:=$(shell find chrome modules defaults -name "*.html" -o -name "*.cs
 
 ICONS = $(addprefix chrome/content/, broken.png bad.png error.png)
 
+VERSION = $(shell head -n1 Changelog | sed -e 's/^.*(//' -e 's/).*$$//')
+
 monkeysphere.xpi: $(XPI_CONTENTS) $(ICONS)
 	zip $@ $(XPI_CONTENTS) $(ICONS)
 
+install.rdf: install.rdf.template Changelog
+	sed 's/__VERSION__/$(VERSION)/' < $< > $@
+
 icons: $(ICONS)
 %.png: %.svg
 	inkscape --export-png $@ --export-area-page --export-background-opacity=0 $<
@@ -25,5 +30,6 @@ publish: monkeysphere.xpi
 clean:
 	rm -f $(ICONS)
 	rm -f monkeysphere.xpi
+	rm -f install.rdf
 
 .PHONY: clean icons debian-package publish
diff --git a/install.rdf.template b/install.rdf.template
index 6e1e465..4ab7155 100644
--- a/install.rdf.template
+++ b/install.rdf.template
@@ -24,7 +24,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
   <Description about="urn:mozilla:install-manifest">
     <em:id>tls-xul-ext at monkeysphere.info</em:id>
     <em:name>Monkeysphere</em:name>
-    <em:version>0.1</em:version>
+    <em:version>__VERSION__</em:version>
     <em:type>2</em:type>
     <em:description>Consult Monkeysphere validation-agent for validation of x.509 certificates via the OpenPGP Web of Trust.
     </em:description>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list