diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-12-24 04:48:52 +0800 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-24 15:24:06 +0100 |
commit | 76b68df121dfce7c44a25738711c47fb0d034e24 (patch) | |
tree | 9d949908a4a49be1fbb5db3f3d6a93f45709b6e2 | |
parent | 4c65322b2c6bb62a1f6019afa25a5b9fd9b8c606 (diff) | |
download | gstreamer-common-76b68df121dfce7c44a25738711c47fb0d034e24.tar.gz |
gtk-doc: Fallback to 'cp' when 'cp -u' fails
'cp -u' is not specified in POSIX and it can fail with illegal option
error on systems not supporting it. It is better to fallback to the
slower 'cp' than causing build failure.
https://bugzilla.gnome.org/show_bug.cgi?id=791784
-rw-r--r-- | gtk-doc-plugins.mak | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak index 4b5dd1b..8cf6e15 100644 --- a/gtk-doc-plugins.mak +++ b/gtk-doc-plugins.mak @@ -121,7 +121,9 @@ scanobj-build.stamp: $(SCANOBJ_DEPS) $(basefiles) @if test x"$(srcdir)" != x. ; then \ for f in $(SCANOBJ_FILES) $(SCAN_FILES); \ do \ - if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \ + if test -e $(srcdir)/$$f; then \ + cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f . ; \ + fi; \ done; \ fi; \ mkdir -p $(INSPECT_DIR); \ @@ -155,7 +157,9 @@ scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp @if test x"$(srcdir)" != x. ; then \ for f in $(SCANOBJ_FILES) $(SCAN_FILES); \ do \ - if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \ + if test -e $(srcdir)/$$f; then \ + cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f .; \ + fi; \ done; \ fi @_source_dir='' ; \ |