Skip to content
Snippets Groups Projects
Commit b1d0bd49 authored by dam1n19's avatar dam1n19
Browse files

SOC1-124: Updated flow to work with bash

parent 7cdcb7c3
No related branches found
No related tags found
No related merge requests found
Subproject commit 2435cd9df8ff8a7e7d2e289b4e646eed10882e27
Subproject commit dacc3b76ea88cac52cec96a79f66f58efb852c09
Subproject commit b29111dad3d10ea9499f63f39ba8536b21f51355
Subproject commit 2d3beadf82bf46dab66c78455ff7f1afb67232b4
......@@ -10,6 +10,7 @@
#-----------------------------------------------------------------------------
#!/bin/bash
echo "set_env root"
# Get Root Location of Design Structure
if [ -z $DESIGN_ROOT ]; then
# If $DESIGN_ROOT hasn't been set yet
......@@ -24,7 +25,7 @@ if [ -z $DESIGN_ROOT ]; then
source $DESIGN_ROOT/set_env.sh
else
# Set Environment Variable for this Repository
export SOC_TOP_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
export SOC_TOP_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# If this Repo is root of workspace
if [ $SOC_TOP_DIR = $DESIGN_ROOT ]; then
......@@ -37,6 +38,7 @@ else
# Source environment variables for all submodules
for d in $SOC_TOP_DIR/* ; do
if [ -e "$d/.git" ]; then
echo $d
if [ -f "$d/set_env.sh" ]; then
# If .git file exists - submodule
source $d/set_env.sh
......
Subproject commit bbd478b94f719df99ade719c546cfad52dd24e40
Subproject commit 2dfadb8f034a6fad85df20fe377441f299d0ba1d
Subproject commit f14cbe8a2f6124b6bca3a6b23b5e735b715458b7
Subproject commit c44834af2df7e02f797229f6d735da0d83d8ec80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment