Add utility shell-scripts

This commit is contained in:
Frédéric Guillot
2014-02-16 17:56:37 -05:00
parent 2044d1ab36
commit 4fd4180d1c
5 changed files with 26 additions and 0 deletions

14
scripts/make-archive.sh Executable file
View File

@@ -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