# HG changeset patch # User Guido Berhoerster # Date 1487751074 -3600 # Node ID e4391e12b799f37558d21d3f996977040562d941 # Parent e32b90567f39499725730cf42a10ffe57aca9a9e Generate manifest.json diff -r e32b90567f39 -r e4391e12b799 Makefile --- a/Makefile Mon Feb 20 18:07:00 2017 +0100 +++ b/Makefile Wed Feb 22 09:11:14 2017 +0100 @@ -25,8 +25,9 @@ VERSION = 3 EXT_NAME = $(subst -,_,$(NAME))-$(VERSION) -INKSCAPE := inkscape -INFOZIP := zip +INKSCAPE := inkscape +INFOZIP := zip +SED := sed BITMAP_ICONS = icons/tab-mover-48.png \ icons/tab-mover-96.png @@ -57,6 +58,9 @@ $(foreach icon,$(BITMAP_ICONS),$(eval $(call generate-icon-rule,$(icon)))) +manifest.json: manifest.json.in + $(SED) 's|@VERSION@|$(VERSION)|g' $< >$@ + clean: -rm -f $(BITMAP_ICONS) diff -r e32b90567f39 -r e4391e12b799 manifest.json --- a/manifest.json Mon Feb 20 18:07:00 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -{ - "manifest_version": 2, - "name": "__MSG_extensionName__", - "version": "3", - "description": "__MSG_extensionDescription__", - "author": "Guido Berhoerster", - "homepage_url": "https://code.guido-berhoerster.org/addons/firefox-addons/tab-mover/", - "applications": { - "gecko": { - "id": "tab-mover@code.guido-berhoerster.org", - "strict_min_version": "51.0" - } - }, - "icons": { - "48": "icons/tab-mover-48.png", - "96": "icons/tab-mover-96.png" - }, - "default_locale": "en", - "permissions": [ - "contextMenus", - "tabs" - ], - "background": { - "scripts": [ - "background.js" - ] - } -} diff -r e32b90567f39 -r e4391e12b799 manifest.json.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/manifest.json.in Wed Feb 22 09:11:14 2017 +0100 @@ -0,0 +1,28 @@ +{ + "manifest_version": 2, + "name": "__MSG_extensionName__", + "version": "@VERSION@", + "description": "__MSG_extensionDescription__", + "author": "Guido Berhoerster", + "homepage_url": "https://code.guido-berhoerster.org/addons/firefox-addons/tab-mover/", + "applications": { + "gecko": { + "id": "tab-mover@code.guido-berhoerster.org", + "strict_min_version": "51.0" + } + }, + "icons": { + "48": "icons/tab-mover-48.png", + "96": "icons/tab-mover-96.png" + }, + "default_locale": "en", + "permissions": [ + "contextMenus", + "tabs" + ], + "background": { + "scripts": [ + "background.js" + ] + } +}