summaryrefslogtreecommitdiff
path: root/tools/gen_scripts/gio_generate_methods.sh
blob: 4a3def34c476e59e9426e5b382fc693c4a0c151e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# The script assumes that it resides in the tools/gen_scripts directory and
# the defs file will be placed in gio/src.

source "$(dirname "$0")/init_generate.sh"

out_dir="$root_dir/gio/src"

shopt -s extglob # Enable extended pattern matching
shopt -s nullglob # Skip a filename pattern that matches no file
# Process files whose names end with .h, but not with private.h.
# Exclude $build_prefix/gio/xdp-dbus.h.
"$gen_methods" "$source_prefix"/gio/!(*private).h "$build_prefix"/gio/!(*private|xdp-dbus).h > "$out_dir"/gio_methods.defs