From 6ea048482e220e6d7f85ea32d7f791ba6b242ba0 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Thu, 6 Nov 2014 19:52:42 +0100 Subject: [PATCH] adding packaging tool --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..952159b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +NAME = chromesoul +VERSION = $(shell cat manifest.json | /bin/grep '"version"' | cut -d '"' -f 4) +SRC = background.js \ + chromesoul.css \ + chromesoul.html \ + chromesoul.js \ + CREDITS.md \icon_128.png \ + icon_16.png \ + img \ + lib \ + LICENCE.txt \ + manifest.json \ + README.md \ + third-party +PUBDIR = publish +ARCHIVE = $(PUBDIR)/chromesoul_$(VERSION).zip + +all: + zip -r $(ARCHIVE) $(SRC) + rm -f $(PUBDIR)/chromesoul.zip + ln -s $(ARCHIVE) $(PUBDIR)/chromesoul.zip