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.

(cherry picked from commit 7c5fd25)
  • Loading branch information
keszybz committed May 6, 2021
1 parent 004ab84 commit f6435a0
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 f6435a0

Please sign in to comment.