aboutsummaryrefslogtreecommitdiff
path: root/bin/package_plugin
diff options
context:
space:
mode:
Diffstat (limited to 'bin/package_plugin')
-rwxr-xr-xbin/package_plugin17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/package_plugin b/bin/package_plugin
new file mode 100755
index 0000000..f846f5f
--- /dev/null
+++ b/bin/package_plugin
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3TEMPDIR=build
4DEST=$PWD
5
6cd $TEMPDIR
7
8TARGET=$1
9if test $1 != "firefox" -a $1 != "chrome"
10then
11echo "Unknown extension target. Use 'firefox' or 'chrome'"
12exit 1
13fi
14
15cp manifest-$TARGET.json manifest.json # Set manifest for browser
16zip -r $DEST/reclaim-plugin-$TARGET-$(git describe --tags).zip -FS *
17cd $DEST