From edaec684b5ab0528276c8bc4675b09c428950533 Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Tue, 9 May 2017 14:39:28 +0000
Subject: [PATCH] Fix cleaning up

---
 build-all.sh | 3 +++
 clean-all.sh | 8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/build-all.sh b/build-all.sh
index 581ac6c27..02b52e90d 100755
--- a/build-all.sh
+++ b/build-all.sh
@@ -20,6 +20,9 @@ mkdir -p $ZEST_RUNTIME/bin
 mkdir -p $ZEST_RUNTIME/sbin
 
 if [ ! -f manifest.txt.config ]; then
+	if [ ! -d "$PS_INSTALL" ]; then
+		mkdir "$PS_INSTALL"
+	fi
 	$PEDI_HOME/pedi --setup -m manifest.txt -l ida -l ida_key -l ps -l zipr -l stratafier -l stars -i $PS_INSTALL
 fi
 
diff --git a/clean-all.sh b/clean-all.sh
index 8e3931c25..59ef231fd 100755
--- a/clean-all.sh
+++ b/clean-all.sh
@@ -59,5 +59,13 @@ if [ -d $ZIPR_HOME ]; then
 	scons -c || exit
 fi
 
+
 cd $PEASOUP_UMBRELLA_DIR
 
+# clean up installation
+$PEDI_HOME/pedi -c -m manifest.txt
+if [ -d "$PS_INSTALL" ]; then
+	echo "removing $PS_INSTALL"
+	rm -fr "$PS_INSTALL"
+fi
+
-- 
GitLab