File tree Expand file tree Collapse file tree 2 files changed +22
-10
lines changed
Expand file tree Collapse file tree 2 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,17 @@ for project in *.hsfiles; do
1515 cabal build
1616 cabal run test-library
1717 cabal run doctests
18- if [[ ${project} != " deca.hsfiles" ]]; then
19- cabal run clash -- Example.Project --vhdl
20- else
21- cabal run clash -- DECA --vhdl
22- fi
18+ case " ${project} " in
19+ deca.hsfiles)
20+ cabal run clash -- DECA --vhdl
21+ ;;
22+ orangecrab.hsfile)
23+ cabal run clash -- Blink --vhdl
24+ ;;
25+ * )
26+ cabal run clash -- Example.Project --vhdl
27+ ;;
28+ esac
2329
2430 # Clean up
2531 cd ..
Original file line number Diff line number Diff line change @@ -13,11 +13,17 @@ for project in *.hsfiles; do
1313 # Build and test with Stack
1414 stack build
1515 stack test
16- if [[ ${project} != " deca.hsfiles" ]]; then
17- stack run clash -- Example.Project --vhdl
18- else
19- stack run clash -- DECA --vhdl
20- fi
16+ case " ${project} " in
17+ deca.hsfiles)
18+ stack run clash -- DECA --vhdl
19+ ;;
20+ orangecrab.hsfile)
21+ stack run clash -- Blink --vhdl
22+ ;;
23+ * )
24+ stack run clash -- Example.Project --vhdl
25+ ;;
26+ esac
2127
2228 # Clean up
2329 cd ..
You can’t perform that action at this time.
0 commit comments