build: don't use sh for scdoc
This commit is contained in:
		
							parent
							
								
									d9f9fb51ff
								
							
						
					
					
						commit
						63935ba0fb
					
				
							
								
								
									
										11
									
								
								meson.build
								
								
								
								
							
							
						
						
									
										11
									
								
								meson.build
								
								
								
								
							| 
						 | 
					@ -2,7 +2,7 @@ project(
 | 
				
			||||||
    'waybar', 'cpp', 'c',
 | 
					    'waybar', 'cpp', 'c',
 | 
				
			||||||
    version: '0.9.24',
 | 
					    version: '0.9.24',
 | 
				
			||||||
    license: 'MIT',
 | 
					    license: 'MIT',
 | 
				
			||||||
    meson_version: '>= 0.56.0',
 | 
					    meson_version: '>= 0.59.0',
 | 
				
			||||||
    default_options : [
 | 
					    default_options : [
 | 
				
			||||||
        'cpp_std=c++20',
 | 
					        'cpp_std=c++20',
 | 
				
			||||||
        'buildtype=release',
 | 
					        'buildtype=release',
 | 
				
			||||||
| 
						 | 
					@ -435,9 +435,6 @@ install_data(
 | 
				
			||||||
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages'))
 | 
					scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if scdoc.found()
 | 
					if scdoc.found()
 | 
				
			||||||
    scdoc_prog = find_program(scdoc.get_variable(pkgconfig: 'scdoc'), native: true)
 | 
					 | 
				
			||||||
    sh = find_program('sh', native: true)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    main_manpage = configure_file(
 | 
					    main_manpage = configure_file(
 | 
				
			||||||
        input: 'man/waybar.5.scd.in',
 | 
					        input: 'man/waybar.5.scd.in',
 | 
				
			||||||
        output: 'waybar.5.scd',
 | 
					        output: 'waybar.5.scd',
 | 
				
			||||||
| 
						 | 
					@ -510,9 +507,9 @@ if scdoc.found()
 | 
				
			||||||
            # drops the 'man' if `path` is an absolute path
 | 
					            # drops the 'man' if `path` is an absolute path
 | 
				
			||||||
            input: 'man' / path,
 | 
					            input: 'man' / path,
 | 
				
			||||||
            output: output,
 | 
					            output: output,
 | 
				
			||||||
            command: [
 | 
					            command: scdoc.get_variable('scdoc'),
 | 
				
			||||||
                sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc_prog.full_path(), output)
 | 
					            feed: true,
 | 
				
			||||||
            ],
 | 
					            capture: true,
 | 
				
			||||||
            install: true,
 | 
					            install: true,
 | 
				
			||||||
            install_dir: '@0@/man@1@'.format(mandir, section)
 | 
					            install_dir: '@0@/man@1@'.format(mandir, section)
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue