aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-04 22:49:14 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-04 22:49:14 +0000
commita28e8df85b68f317119be9f83a69f4ddb55ee99c (patch)
tree3ae41a43cb3985bb9e830df39d9e33d37d0639f3
parentbf2b22c200f40ee94ee8c5578dfef1111d0c92bb (diff)
downloadpaludis-a28e8df85b68f317119be9f83a69f4ddb55ee99c.tar.gz
paludis-a28e8df85b68f317119be9f83a69f4ddb55ee99c.tar.xz
Implement dohtml -p.
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/dohtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/utils/dohtml b/paludis/repositories/e/ebuild/utils/dohtml
index db8d768..e154691 100755
--- a/paludis/repositories/e/ebuild/utils/dohtml
+++ b/paludis/repositories/e/ebuild/utils/dohtml
@@ -32,6 +32,7 @@ allowed_exts="png gif html htm jpg css jps"
disallowed_dirs=""
allowed_files=""
recurse=0
+doc_prefix=""
args=( )
split_names() {
@@ -67,6 +68,10 @@ parse_args() {
disallowed_dirs="$(split_names $2)"
shift
;;
+ -p)
+ doc_prefix="$2"
+ shift
+ ;;
*)
args=( "${args[@]}" "$1" ) ;;
esac
@@ -86,7 +91,7 @@ install_file() {
[[ -z ${DOCDESTTREE} ]] && DOCDESTTREE="html"
- dir="${D}usr/share/doc/${PF}/${DOCDESTTREE}/${prefix}"
+ dir="${D}usr/share/doc/${PF}/${DOCDESTTREE}/${doc_prefix}/${prefix}"
if [[ -f ${path} ]]; then
ext="$(basename ${path})"