Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions flow/util/generate-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ while read -r VAR; do
if [[ "${name}" == *"SCRIPTS_DIR"* ]]; then
value=$(sed -e "s,${FLOW_ROOT},.,g" <<< "${value}")
fi
for path in workspace platforms; do
value=$(sed -e "s,\(^\|[: \"']\)/${path},\1./${path},g" <<< "${value}")
done

# PII members use PRESERVE_PATHS=1 make issue ...
if [[ ! -v PRESERVE_PATHS ]]; then
for path in workspace platforms; do
value=$(sed -e "s,\(^\|[: \"']\)/${path},\1./${path},g" <<< "${value}")
done
fi
value=$(sed -e "s,${FLOW_ROOT},\${FLOW_HOME},g" <<< "${value}")
value=$(sed -e "s,${ORFS_ROOT},\${FLOW_HOME}/\.\.,g" <<< "${value}")

Expand Down