summaryrefslogtreecommitdiff
path: root/help/mate-clock/meson.build
blob: d82268e419aeed19202b84e3edc1fa7baf0717a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
fs = import('fs')

help_id = 'mate-clock'
help_sources = ['index.docbook', 'legal.xml']
help_media = ['figures/clock_applet.png']

# discover the locale directories holding a <locale>.po translation file
langs = []
foreach entry : run_command('ls', '-1', meson.current_source_dir(), check: true).stdout().strip().split('\n')
  entry_path = join_paths(meson.current_source_dir(), entry)
  if entry != 'C' and fs.is_dir(entry_path) and fs.exists(join_paths(entry_path, entry + '.po'))
    langs += entry
  endif
endforeach

gnome.yelp(help_id,
  sources: help_sources,
  media: help_media,
  languages: langs,
  symlink_media: true,
)