Skip to content

Commit

Permalink
btrfs-progs: graciously handle documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Aug 12, 2014
1 parent f7a86f2 commit 4e9a2ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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)"
6 changes: 6 additions & 0 deletions 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

0 comments on commit 4e9a2ec

Please sign in to comment.