From 8937fdb78b723459522a536f7abe2c0828f44852 Mon Sep 17 00:00:00 2001
From: jdh8d <jdh8d@git.zephyr-software.com>
Date: Thu, 14 Jan 2016 19:43:24 +0000
Subject: [PATCH] added zanalyze and made appropriate changes, including many
 other typos/bugs/etc.

---
 .gitattributes                   |  1 +
 build-all.sh                     |  2 +-
 cfar_postgres_setup_for_other.sh | 24 ++++++++++++++++++++++++
 3 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100755 cfar_postgres_setup_for_other.sh

diff --git a/.gitattributes b/.gitattributes
index 37e62a9f6..4dce1730b 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,6 +2,7 @@
 /build-all.sh -text
 /build_diehard.sh -text
 /cfar_postgres_setup.sh -text
+/cfar_postgres_setup_for_other.sh -text
 /clean-all.sh -text
 /clean_diehard.sh -text
 /get-peasoup-packages.sh -text
diff --git a/build-all.sh b/build-all.sh
index ce85496a0..38b348eef 100755
--- a/build-all.sh
+++ b/build-all.sh
@@ -111,6 +111,6 @@ cd $PEASOUP_UMBRELLA_DIR
 
 echo
 echo
-echo  "Overall build complete."
+echo  "peasoup/cfar_umbrella Overall build complete."
 echo
 echo
diff --git a/cfar_postgres_setup_for_other.sh b/cfar_postgres_setup_for_other.sh
new file mode 100755
index 000000000..f9535c586
--- /dev/null
+++ b/cfar_postgres_setup_for_other.sh
@@ -0,0 +1,24 @@
+#!/bin/bash -x
+
+#Create Database User and Table
+source set_env_vars
+
+other=$1
+
+
+
+echo other is $other
+
+sudo su -c "dropdb peasoup_${other}" postgres
+sudo su -c "createdb -O ${other} peasoup_${other}" postgres
+PGDATABASE=peasoup_${other} $PEASOUP_HOME/tools/db/pdb_setup.sh
+
+for i in $(seq 0 4)
+do
+	sudo su -c "dropdb peasoup_${other}_v$i" postgres
+	sudo su -c "createdb -O ${other} peasoup_${other}_v$i" postgres
+
+	#Setup the Database to store PEASOUP info
+	PGDATABASE=peasoup_${other}_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh
+
+done
-- 
GitLab