Debian Codegraph @

bin/ci/download_gl_schema.sh

raw
1 #!/bin/sh
2
3 # Helper script to download the schema GraphQL from Gitlab to enable IDEs to
4 # assist the developer to edit gql files
5
6 SOURCE_DIR=$(dirname "$(realpath "$0")")
7
8 (
9 cd $SOURCE_DIR || exit 1
10 gql-cli https://gitlab.freedesktop.org/api/graphql --print-schema > schema.graphql
11 )