Skip to content

Commit

Permalink
Release script and first release link - code
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Skjolden <[email protected]>
  • Loading branch information
plastboks committed May 15, 2015
1 parent fe0af2c commit 77df567
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!README.md
!create.sh
3 changes: 3 additions & 0 deletions release/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Link to releases

* [RC1 2015-05-15](http://student.cs.hioa.no/~s114143/dats1600/GeneralAverage.2015-05-15.RC1.zip)
24 changes: 24 additions & 0 deletions release/create.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 77df567

Please sign in to comment.