Skip to content

Commit

Permalink
Merge branch 'deployment'
Browse files Browse the repository at this point in the history
  • Loading branch information
philjackson committed Dec 12, 2009
2 parents 304c56c + 9afc7c3 commit 5491042
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
builds/
17 changes: 17 additions & 0 deletions Makefile
@@ -0,0 +1,17 @@
VERSION=$(shell bin/get-chromacs-version.bash)
NAME=builds/chromacs-$(VERSION).crx

all: $(NAME)

$(NAME): manifest.json chromacs.js
crxmake --pack-extension-key=${HOME}/etc/chromacs.pem \
--extension-output=$(NAME) \
--pack-extension=. \
--ignore-dir="(bin|builds|.git)" \
--ignore-file="(Makefile|.gitignore)"

clean:
rm -f $(NAME)

tag: $(NAME)
git tag "$(VERSION)"
11 changes: 11 additions & 0 deletions bin/get-chromacs-version.bash
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# extract the version from the manifest file

if [ ! -f "manifest.json" ]; then
echo "No manifest file in this directory." >&2
exit 1
fi

grep '"version"' manifest.json \
| perl -nle '/:\s*"(.+)"/ and print $1'

0 comments on commit 5491042

Please sign in to comment.