Fix installhelp target on OpenBSD.

The -R flag to cpio isn't portable, so replace it with an open-coded
shell loop.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@236 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-05-22 11:56:20 +00:00
parent 092d9789e0
commit 6045b8fe91

View File

@@ -212,9 +212,21 @@ installdll_local: $(srcdir)/Makefile dll/Makefile
installhelp: installdirs installhelp: installdirs
cd $(top_srcdir)/bitchx-docs && \ cd $(top_srcdir)/bitchx-docs && \
find . -name .svn -prune -o -print | cpio -pdmu -R `id -un`:`id -gn` "$(DESTDIR)$(HELPDIR)" for d in `find . -name .svn -prune -o -type d ! -name . -print`; do \
(find "$(DESTDIR)$(HELPDIR)" -type f ! -name '*.bz2' ! -name '*.gz' | \ umask 022 && ../mkinstalldirs "$(DESTDIR)$(HELPDIR)/$$d"; \
(xargs bzip2 -9f || xargs gzip -9f) || :) 2>/dev/null for f in "$$d/"*; do \
if test -f "$$f"; then \
$(INSTALL_DATA) "$$f" "$(DESTDIR)$(HELPDIR)/$$d"; \
fi; \
done; \
done
for f in $(top_srcdir)/bitchx-docs/*; do \
if test -f "$$f"; then \
$(INSTALL_DATA) "$$f" "$(DESTDIR)$(HELPDIR)"; \
fi; \
done;
-(find "$(DESTDIR)$(HELPDIR)" -type f ! -name '*.bz2' ! -name '*.gz' | \
(xargs bzip2 -9f || xargs gzip -9f)) 2>/dev/null
installbin: installirc @INSTALL_EXTRAS@ installbin: installirc @INSTALL_EXTRAS@