-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preliminary script for creating releases
- Loading branch information
Kalle Volkov
committed
May 20, 2016
1 parent
4916df3
commit fedab10
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|