mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-02 09:01:47 -05:00 
			
		
		
		
	...by reading <config-dir>/themerc-override where <config-dir> is normally $HOME/.config/labwc can be other locations as described in labwc-config(5) and can also be specified by the command line option -C. The reason for supporting theme override is to give users more fine- grained control of settings without making local copies and modifying themes.
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
scdoc = find_program('scdoc', required: get_option('man-pages'))
 | 
						|
 | 
						|
if scdoc.found()
 | 
						|
  sections = [
 | 
						|
    '.1',
 | 
						|
    '-actions.5',
 | 
						|
    '-config.5',
 | 
						|
    '-menu.5',
 | 
						|
    '-theme.5',
 | 
						|
  ]
 | 
						|
  foreach s : sections
 | 
						|
    markdown = 'labwc' + s + '.scd'
 | 
						|
    manpage = 'labwc' + s
 | 
						|
    custom_target(
 | 
						|
      manpage,
 | 
						|
      input: markdown,
 | 
						|
      output: manpage,
 | 
						|
      command: scdoc,
 | 
						|
      feed: true,
 | 
						|
      capture: true,
 | 
						|
      install: true,
 | 
						|
      install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
 | 
						|
    )
 | 
						|
  endforeach
 | 
						|
endif
 | 
						|
 | 
						|
install_data(
 | 
						|
  [
 | 
						|
    'autostart',
 | 
						|
    'environment',
 | 
						|
    'menu.xml',
 | 
						|
    'README',
 | 
						|
    'themerc',
 | 
						|
    'rc.xml',
 | 
						|
    'rc.xml.all'
 | 
						|
  ],
 | 
						|
  install_dir: get_option('datadir') / 'doc' / meson.project_name()
 | 
						|
)
 |