From 29ea1f85e7ee9708ed6e946d2ba9e2fc511c5552 Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Fri, 8 Jul 2016 14:24:02 +0200
Subject: [PATCH] add go.sh and clean.sh + update README

---
 README.md | 4 +++-
 clean.sh  | 5 +++++
 go.sh     | 4 ++++
 3 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100755 clean.sh
 create mode 100755 go.sh

diff --git a/README.md b/README.md
index 3cdb8c03e..7656211a7 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,12 @@ This is the MIP backend.
 
 ## Usage
 
-* Build the project: `./build.sh`
+* Build and run the project (including clean target): `./go.sh`
+* Build the project (including clean target): `./build.sh`
 * Run the project: `./run.sh`
 * Show live logs: `./log.sh` (CTRL+C to quit)
 * Stop and remove the running container: `./halt.sh`
+* Clean Maven cache, etc: `./clean.sh`
 
 ## Generate PDF API documentation on build
 
diff --git a/clean.sh b/clean.sh
new file mode 100755
index 000000000..41fc76f1b
--- /dev/null
+++ b/clean.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+./halt.sh
+sudo rm -r ./.m2/
+sudo rm -r ./target/
diff --git a/go.sh b/go.sh
new file mode 100755
index 000000000..2d044fe98
--- /dev/null
+++ b/go.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+./build.sh
+./run.sh
-- 
GitLab