github.com/algorand/go-algorand-sdk@v1.24.0/logic/bundle_langspec_json.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  THISDIR=$(dirname $0)
     4  
     5  cat <<EOM | gofmt > $THISDIR/bundledSpecInject.go
     6  // Code generated during build process, along with langspec.json. DO NOT EDIT.
     7  package logic
     8  
     9  var langSpecJson []byte
    10  
    11  func init() {
    12          langSpecJson = []byte{
    13          $(cat $THISDIR/langspec.json | hexdump -v -e '1/1 "0x%02X, "' | fmt)
    14          }
    15  }
    16  
    17  EOM