From c0303237713c4b542497dd7bf337ab558e265dfe Mon Sep 17 00:00:00 2001 From: Andreas Rudolph Date: Wed, 26 Nov 2014 20:52:16 +0100 Subject: [PATCH] add management script for the creation of ZIP release archives --- .gitignore | 1 + release.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 release.sh diff --git a/.gitignore b/.gitignore index f53fb92..c94d2bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /nbproject/private/ +/release/ diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..6eb56a5 --- /dev/null +++ b/release.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +NAME="OpenEstatePhpWrapper" +VERSION="0.5" +PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +rm -Rf $PROJECT_DIR/release +mkdir $PROJECT_DIR/release + +cp -R $PROJECT_DIR/src $PROJECT_DIR/release/$NAME +cd $PROJECT_DIR/release +zip -r $NAME-$VERSION.zip $NAME