Skip to content

Commit

Permalink
meson: do not fail if rsync is not installed with meson 0.57.2
Browse files Browse the repository at this point in the history
mesonbuild/meson#8641

Our CI started to fail. Even if the change is reverted in meson,
we need a quick workaround here.
  • Loading branch information
keszybz authored and insilications committed Jun 9, 2021
1 parent 13258ac commit 2a55c6a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions man/meson.build
Expand Up @@ -184,17 +184,20 @@ html = custom_target(
depends : html_pages,
command : ['echo'])

run_target(
'doc-sync',
depends : man_pages + html_pages,
command : ['rsync', '-rlv',
'--delete-excluded',
'--include=man',
'--include=*.html',
'--exclude=*',
'--omit-dir-times',
meson.current_build_dir(),
get_option('www-target')])
rsync = find_program('rsync', required : false)
if rsync.found()
run_target(
'doc-sync',
depends : man_pages + html_pages,
command : [rsync, '-rlv',
'--delete-excluded',
'--include=man',
'--include=*.html',
'--exclude=*',
'--omit-dir-times',
meson.current_build_dir(),
get_option('www-target')])
endif

############################################################

Expand Down

0 comments on commit 2a55c6a

Please sign in to comment.