diff options
Diffstat (limited to 'bin/package_plugin')
-rwxr-xr-x | bin/package_plugin | 17 |
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 | |||
3 | TEMPDIR=build | ||
4 | DEST=$PWD | ||
5 | |||
6 | cd $TEMPDIR | ||
7 | |||
8 | TARGET=$1 | ||
9 | if test $1 != "firefox" -a $1 != "chrome" | ||
10 | then | ||
11 | echo "Unknown extension target. Use 'firefox' or 'chrome'" | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
15 | cp manifest-$TARGET.json manifest.json # Set manifest for browser | ||
16 | zip -r $DEST/reclaim-plugin-$TARGET-$(git describe --tags).zip -FS * | ||
17 | cd $DEST | ||