From 77df5670268433b3633095a6c995d3e7e470d39e Mon Sep 17 00:00:00 2001 From: Alexander Skjolden Date: Fri, 15 May 2015 20:16:53 +0200 Subject: [PATCH] Release script and first release link - code Signed-off-by: Alexander Skjolden --- release/.gitignore | 4 ++++ release/README.md | 3 +++ release/create.sh | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 release/.gitignore create mode 100644 release/README.md create mode 100755 release/create.sh diff --git a/release/.gitignore b/release/.gitignore new file mode 100644 index 0000000..edf0075 --- /dev/null +++ b/release/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!README.md +!create.sh diff --git a/release/README.md b/release/README.md new file mode 100644 index 0000000..f0d65fb --- /dev/null +++ b/release/README.md @@ -0,0 +1,3 @@ +#Link to releases + +* [RC1 2015-05-15](http://student.cs.hioa.no/~s114143/dats1600/GeneralAverage.2015-05-15.RC1.zip) diff --git a/release/create.sh b/release/create.sh new file mode 100755 index 0000000..0018409 --- /dev/null +++ b/release/create.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ "x$1" = "x" ]; then + printf "=> Please enter release name\n" + exit +fi + +APP_NAME="GeneralAverage" +DATE=`date "+%Y-%m-%d"` +TMP=$APP_NAME.$DATE.$1 + +mkdir $TMP +mkdir $TMP/data +mkdir $TMP/preferences + +cp ../data/persons_big.dat $TMP/data/demodata.dat +cp -r ../languages $TMP/ +cp -r ../src $TMP/ +cp -r ../uploads $TMP/ +cp -r ../resources $TMP/ +cp ../out/artifacts/$APP_NAME/$APP_NAME.jar $TMP/$APP_NAME.$1.jar + +zip -r $TMP.zip $TMP +rm -r $TMP