|
|
17aa40 |
From d5cefb7293d2999dcad81bd71933b319ca6c3590 Mon Sep 17 00:00:00 2001
|
|
|
eb8b6e |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
eb8b6e |
Date: Mon, 12 Apr 2021 14:03:32 +0200
|
|
|
eb8b6e |
Subject: [PATCH] meson: do not fail if rsync is not installed with meson
|
|
|
eb8b6e |
0.57.2
|
|
|
eb8b6e |
|
|
|
eb8b6e |
https://github.com/mesonbuild/meson/issues/8641
|
|
|
eb8b6e |
|
|
|
eb8b6e |
Our CI started to fail. Even if the change is reverted in meson,
|
|
|
eb8b6e |
we need a quick workaround here.
|
|
|
eb8b6e |
|
|
|
eb8b6e |
(cherry picked from commit 7c5fd25119a495009ea62f79e5daec34cc464628)
|
|
|
eb8b6e |
|
|
|
17aa40 |
Related: #2017033
|
|
|
eb8b6e |
---
|
|
|
eb8b6e |
man/meson.build | 25 ++++++++++++++-----------
|
|
|
eb8b6e |
1 file changed, 14 insertions(+), 11 deletions(-)
|
|
|
eb8b6e |
|
|
|
eb8b6e |
diff --git a/man/meson.build b/man/meson.build
|
|
|
eb8b6e |
index a953d34098..efc8836d0c 100644
|
|
|
eb8b6e |
--- a/man/meson.build
|
|
|
eb8b6e |
+++ b/man/meson.build
|
|
|
eb8b6e |
@@ -178,17 +178,20 @@ html = custom_target(
|
|
|
eb8b6e |
depends : html_pages,
|
|
|
eb8b6e |
command : ['echo'])
|
|
|
eb8b6e |
|
|
|
eb8b6e |
-run_target(
|
|
|
eb8b6e |
- 'doc-sync',
|
|
|
eb8b6e |
- depends : man_pages + html_pages,
|
|
|
eb8b6e |
- command : ['rsync', '-rlv',
|
|
|
eb8b6e |
- '--delete-excluded',
|
|
|
eb8b6e |
- '--include=man',
|
|
|
eb8b6e |
- '--include=*.html',
|
|
|
eb8b6e |
- '--exclude=*',
|
|
|
eb8b6e |
- '--omit-dir-times',
|
|
|
eb8b6e |
- meson.current_build_dir(),
|
|
|
eb8b6e |
- get_option('www-target')])
|
|
|
eb8b6e |
+rsync = find_program('rsync', required : false)
|
|
|
eb8b6e |
+if rsync.found()
|
|
|
eb8b6e |
+ run_target(
|
|
|
eb8b6e |
+ 'doc-sync',
|
|
|
eb8b6e |
+ depends : man_pages + html_pages,
|
|
|
eb8b6e |
+ command : [rsync, '-rlv',
|
|
|
eb8b6e |
+ '--delete-excluded',
|
|
|
eb8b6e |
+ '--include=man',
|
|
|
eb8b6e |
+ '--include=*.html',
|
|
|
eb8b6e |
+ '--exclude=*',
|
|
|
eb8b6e |
+ '--omit-dir-times',
|
|
|
eb8b6e |
+ meson.current_build_dir(),
|
|
|
eb8b6e |
+ get_option('www-target')])
|
|
|
eb8b6e |
+endif
|
|
|
eb8b6e |
|
|
|
eb8b6e |
############################################################
|
|
|
eb8b6e |
|