Skip to content

Commit

Permalink
preliminary script for creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalle Volkov committed May 20, 2016
1 parent 4916df3 commit fedab10
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bin/createdist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

set -e

die () {
echo >&2 "$@"
exit 1
}

[ "$#" -eq 1 ] || die "Version argument is mandatory (for example 1.0)"

VERSION=$1

rm -rf maksekeskus-$VERSION

mkdir maksekeskus-$VERSION/
cp -rp lib/* maksekeskus-$VERSION/

cd maksekeskus-$VERSION/
composer install
rm composer.lock composer.json

cd ..
tar -zcvf maksekeskus-$VERSION.tar.gz maksekeskus-$VERSION
zip -r maksekeskus-$VERSION.zip maksekeskus-$VERSION
rm -rf maksekeskus-$VERSION

0 comments on commit fedab10

Please sign in to comment.