qt-chat-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

generate-types.sh (348B)


      1 #!/usr/bin/env bash
      2 # Regenerate Rust types from TrailBase schemas
      3 set -e
      4 
      5 cd "$(dirname "$0")/.."
      6 
      7 # Start TrailBase in background
      8 echo "Starting TrailBase..."
      9 trail --data-dir traildepot run &
     10 TRAIL_PID=$!
     11 trap "kill $TRAIL_PID 2>/dev/null; wait $TRAIL_PID 2>/dev/null" EXIT
     12 sleep 3
     13 
     14 # Generate schemas and types
     15 make schemas types
     16 
     17 echo "Done!"