Fix generation of env.sh for ZSH (#435)
This commit is contained in:
@@ -141,5 +141,5 @@ cd "$RDIR"
|
|||||||
} > env-$TOOLCHAIN.sh
|
} > env-$TOOLCHAIN.sh
|
||||||
|
|
||||||
# create general env.sh
|
# create general env.sh
|
||||||
echo "source \$( realpath \$(dirname "\${BASH_SOURCE[0]}") )/env-$TOOLCHAIN.sh" >> env.sh
|
echo "source \$( realpath \$(dirname "\${BASH_SOURCE[0]:-\${\(%\):-%x}}") )/env-$TOOLCHAIN.sh" >> env.sh
|
||||||
echo "Toolchain Build Complete!"
|
echo "Toolchain Build Complete!"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ set -e
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
RDIR=$(pwd)
|
RDIR=$(pwd)
|
||||||
scripts_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
scripts_dir="$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
cd "${scripts_dir}/.."
|
cd "${scripts_dir}/.."
|
||||||
|
|
||||||
|
|||||||
@@ -60,4 +60,4 @@ git submodule update --init software/firemarshal
|
|||||||
if [ ! -f $RDIR/software/firemarshal/marshal-config.yaml ]; then
|
if [ ! -f $RDIR/software/firemarshal/marshal-config.yaml ]; then
|
||||||
echo "firesim-dir: '../../sims/firesim/'" > $RDIR/software/firemarshal/marshal-config.yaml
|
echo "firesim-dir: '../../sims/firesim/'" > $RDIR/software/firemarshal/marshal-config.yaml
|
||||||
fi
|
fi
|
||||||
echo "PATH=\$( realpath \$(dirname "\${BASH_SOURCE[0]}") )/software/firemarshal:\$PATH" >> $RDIR/env.sh
|
echo "PATH=\$( realpath \$(dirname "\${BASH_SOURCE[0]:-\${\(%\):-%x}}") )/software/firemarshal:\$PATH" >> $RDIR/env.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user