Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

btrfs-progs: graciously handle documentation

  • Loading branch information...
commit 4e9a2ec808d688af969eb5f1661a2c04011bbed7 1 parent f7a86f2
@Ratler Ratler authored
Showing with 8 additions and 0 deletions.
  1. +2 −0  filesys/btrfs-progs/DEPENDS
  2. +6 −0 filesys/btrfs-progs/PRE_BUILD
View
2  filesys/btrfs-progs/DEPENDS
@@ -1 +1,3 @@
depends lzo
+optional_depends xmlto "" "" "for documentation (also requires asciidoc)"
+optional_depends asciidoc "" "" "for documentation (also requires xmlto)"
View
6 filesys/btrfs-progs/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+
+if ! in_depends $MODULE asciidoc || ! in_depends $MODULE xmlto; then
+ message "${PROBLEM_COLOR}WARNING: ${DEFAULT_COLOR}Installation of docs disabled, to enable documentation install asciidoc and xmlto then rebuild $MODULE!"
+ sedit 's;install-Documentation;;;s;build-Documentation;;' Makefile
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.