diff options
author | obache <obache@pkgsrc.org> | 2006-12-29 07:06:31 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2006-12-29 07:06:31 +0000 |
commit | bee48189f32ddc9de50343829f4611fd55dafef6 (patch) | |
tree | 59bb2ed4ad6f4b30f24a96250ff54d397c0cd411 /mk | |
parent | c34631ab70e7b037142b84afb8f6324a20252334 (diff) | |
download | pkgsrc-bee48189f32ddc9de50343829f4611fd55dafef6.tar.gz |
Relative $infodir is allowed, so if it's relative, add ${PREFIX}.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/pkginstall/info-files | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mk/pkginstall/info-files b/mk/pkginstall/info-files index 3c8cb44eed3..fec0215f359 100644 --- a/mk/pkginstall/info-files +++ b/mk/pkginstall/info-files @@ -1,4 +1,4 @@ -# $NetBSD: info-files,v 1.2 2006/07/19 22:26:26 jlam Exp $ +# $NetBSD: info-files,v 1.3 2006/12/29 07:06:31 obache Exp $ # # Generate an +INFO_FILES script that handles info file registration for # the package. @@ -70,7 +70,10 @@ ADD) ;; esac - ${TEST} -n "$infodir" || infodir="${file%/*}" + case $infodir in + "") infodir="${file%/*}" ;; + [!/]*) infodir="${PKG_PREFIX}/$infodir" ;; + esac infoindex="$infodir/dir" nentries="`${GREP} -c '^\*' $infoindex 2>/dev/null`" case "$nentries" in @@ -109,7 +112,10 @@ REMOVE) ;; esac - ${TEST} -n "$infodir" || infodir="${file%/*}" + case $infodir in + "") infodir="${file%/*}" ;; + [!/]*) infodir="${PKG_PREFIX}/$infodir" ;; + esac infoindex="$infodir/dir" ${ECHO} " $file" ${INSTALL_INFO} --info-dir="$infodir" --delete $file >/dev/null 2>&1 |