Skip to content

Commit

Permalink
Update gen-cddl script to handle multiple eras
Browse files Browse the repository at this point in the history
  • Loading branch information
nc6 committed Aug 16, 2024
1 parent 4259004 commit c788d10
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/gen-cddl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

set -euo pipefail

changed=$(git diff --name-only origin/master -- 'eras/conway/impl/testlib/Test/Cardano/Ledger/Conway/CDDL.hs')
eras=("shelley" "conway")

if [[ -n "$changed" ]]; then
cabal run cardano-ledger-conway:exe:huddle-cddl
fi
for era in ${eras[@]}; do

changed=$(git diff --name-only origin/master -- 'eras/${era}/impl/testlib/Test/Cardano/Ledger/${era^}/CDDL.hs')

if [[ -n "$changed" ]]; then
cabal run cardano-ledger-$era:exe:huddle-cddl
fi

done

0 comments on commit c788d10

Please sign in to comment.