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