xbps-src: implement support to specify repo path in genindex.

You can use it now like:

 $ xbps-src.sh genindex ~/myrepo

It will use XBPS_PACKAGESDIR if no specified.

--HG--
extra : convert_revision : 7d1b17dd77b89387a5f568071b58478e68c4051d
This commit is contained in:
Juan RP 2008-12-20 00:10:06 +01:00
parent 6542132999
commit d90419f36b
2 changed files with 17 additions and 13 deletions

View file

@ -49,9 +49,10 @@ Targets:
configure <pkg> Configure a package (fetch + extract + configure).
extract <pkg> Extract distribution file(s) into build directory.
fetch <pkg> Download distribution file(s).
genindex Generate a package index for a directory containing
binary packages. This uses the XBPS_PACKAGESDIR option
in the configuration file.
genindex [/path/dir] Generate a package index for a directory containing
binary packages. If no path is specified, the
XBPS_PACKAGESDIR in the configuration file will be
used by default.
info <pkg> Show information about <pkg>.
install-destdir <pkg> build + install into destdir.
install <pkg> install-destdir + stow.
@ -263,7 +264,7 @@ extract|fetch|info)
;;
genindex)
. $XBPS_SHUTILSDIR/binpkg-genindex.sh
write_repo_pkgindex
write_repo_pkgindex $2
;;
install|install-destdir)
[ -z "$2" ] && msg_error "missing package name after target."