From 4fd4180d1c491672257c034bd8e4db79d69ebe2c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 16 Feb 2014 17:56:37 -0500 Subject: Add utility shell-scripts --- scripts/make-archive.sh | 14 ++++++++++++++ scripts/make-tag.sh | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100755 scripts/make-archive.sh create mode 100755 scripts/make-tag.sh (limited to 'scripts') 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 + diff --git a/scripts/make-tag.sh b/scripts/make-tag.sh new file mode 100755 index 00000000..108444fc --- /dev/null +++ b/scripts/make-tag.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +VERSION=$1 + +git tag -a v$VERSION -m "Version $VERSION" +git push origin v$VERSION -- cgit v1.2.3