cleaned up scripts by using common variable

Signed-off-by: Joshua Fife <jpfife17@gmail.com>
This commit is contained in:
Joshua Fife 2021-09-30 10:17:50 -06:00
parent 63b5054432
commit 106096f137
1 changed files with 5 additions and 4 deletions

View File

@ -53,9 +53,10 @@ elif [ "$fpga_family" == "eos-s3" -a -z "$examples" ]; then
fi fi
# activate conda and enter example dir # activate conda and enter example dir
snippets="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env,enter-dir-$fpga_family" activate_env="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env"
additionalDesigns="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env,enter-dir-$fpga_family,additional_examples" snippets="${activate_env},enter-dir-$fpga_family"
projfDesigns="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env" additionalDesigns="${activate_env},enter-dir-$fpga_family,additional_examples"
# Xilinx 7-Series examples # Xilinx 7-Series examples
if [ "$fpga_family" = "xc7" ]; then if [ "$fpga_family" = "xc7" ]; then
@ -87,7 +88,7 @@ if [ "$fpga_family" = "xc7" ]; then
# Project F examples # Project F examples
"hello-a") "hello-a")
snippets="${projfDesigns} projf-makefiles/hello/hello-arty/A/README.rst:hello-arty-A" snippets="${activate_env} projf-makefiles/hello/hello-arty/A/README.rst:hello-arty-A"
;; ;;
*) *)
echo "ERROR: Unknown example name: $example" >&2 echo "ERROR: Unknown example name: $example" >&2