added build script

This commit is contained in:
Shane Kumpf 2015-03-04 14:06:20 -07:00
parent 9454a46a68
commit d773c97564
2 changed files with 21 additions and 0 deletions

View File

@ -9,3 +9,8 @@ Setup:
```
cd /tmp && git clone https://github.com/sakserv/sequencefile-examples.git
```
* Build the project
```
cd /tmp/sequencefile-examples && bash -x bin/build.sh
```

16
bin/build.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Install Maven
echo -e "\n#### Installing Maven"
cd /tmp
wget -N http://www.gtlib.gatech.edu/pub/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
tar -xzvf apache-maven-3.2.5-bin.tar.gz
export M2_HOME=/tmp/apache-maven-3.2.5/
export M2=$M2_HOME/bin
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
export PATH=$PATH:$M2:$JAVA_HOME/bin
mvn --version
# Build the project
echo -e "\n#### Building sequencefile-examples"
cd /tmp/sequencefile-examples/ && mvn clean package install