File: gdk_generate_docs.sh

package info (click to toggle)
gtkmm3.0 3.24.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,316 kB
  • sloc: xml: 121,335; cpp: 8,647; makefile: 286; sh: 202; python: 6
file content (21 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

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

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

out_dir="$root_dir/gdk/src"

params="--with-properties --no-recursion"
if [ "$gtk_build_prefix" != "$gtk_source_prefix" ]; then
  gtk_build_dir="$gtk_build_prefix"/gdk
fi
for dir in "$gtk_source_prefix"/{gdk,gdk/deprecated} "$gtk_build_dir" \
           "$pixbuf_source_prefix"/gdk-pixbuf "$pixbuf_build_prefix"/gdk-pixbuf; do
  if [ -d "$dir" ]; then
    params="$params -s $dir"
  fi
done

"$gen_docs" $params > "$out_dir/gdk_docs.xml"