SLING-7587 - Create a CLI-only tool to sync content

Replace build-eclipse.sh with a more generic build.sh script.
diff --git a/build-eclipse.sh b/build-eclipse.sh
deleted file mode 100755
index 1f12194..0000000
--- a/build-eclipse.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-mvn -f shared/modules clean install
-mvn -f shared/p2 clean package
-mvn -f eclipse clean verify
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..69deda1
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+
+build_all()  {
+    mvn -f shared/modules clean install
+    mvn -f cli clean install
+    mvn -f shared/p2 clean package
+    mvn -f eclipse clean verify
+
+}
+
+
+
+if [ $# -eq 1 ]; then
+    case "$1" in
+        eclipse)
+            mvn -f shared/modules clean install
+            mvn -f shared/p2 clean package
+            mvn -f eclipse clean verify
+            ;;
+        cli)
+            mvn -f shared/modules clean install
+            mvn -f cli clean install
+            ;;
+        *)
+            build_all
+            ;;
+    esac
+else
+    build_all
+fi