generate.sh 322 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. # `$1` is the directory to generate the IDLs in, defaults to `./idls`
  3. if [ $# = 1 ]; then
  4. dir=$1
  5. else
  6. dir=$PWD/idls
  7. fi
  8. cd programs/idl
  9. anchor idl build -o $dir/new.json
  10. cd ../generics
  11. anchor idl build -o $dir/generics.json
  12. cd ../relations-derivation
  13. anchor idl build -o $dir/relations.json