diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-16 17:56:37 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-16 17:56:37 -0500 |
commit | 4fd4180d1c491672257c034bd8e4db79d69ebe2c (patch) | |
tree | 104f1d872a3d47296c2a9c51690e054e5f15a9bd /scripts/make-archive.sh | |
parent | 2044d1ab3617c951368b8c13c6f2d324d16267cc (diff) |
Add utility shell-scripts
Diffstat (limited to 'scripts/make-archive.sh')
-rwxr-xr-x | scripts/make-archive.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/make-archive.sh b/scripts/make-archive.sh new file mode 100755 index 00000000..3de519fd --- /dev/null +++ b/scripts/make-archive.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +VERSION=$1 +APP="kanboard" + +cd /tmp +rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null +git clone git@github.com:fguillot/$APP.git +rm -rf $APP/data/*.sqlite $APP/.git $APP/.gitignore $APP/scripts $APP/examples +sed -i.bak s/master/$VERSION/g $APP/models/base.php && rm -f $APP/models/*.bak +zip -r $APP-$VERSION.zip $APP +mv $APP-*.zip ~/Devel/websites/$APP +rm -rf /tmp/$APP 2>/dev/null + |