From c80d154fc4e457628222e26ae0c4c76e6d677f4b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2008 01:11:24 +0200 Subject: [PATCH] pkgfs.sh: added new 'install-destdir' target. This target will build and install a package into destdir but without stowning it in masterdir. Useful to test new versions with already stowned packages. --HG-- extra : convert_revision : 6845fd51ecb6791396717339e0c3b23edcd61d85 --- pkgfs.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgfs.sh b/pkgfs.sh index ed85114794c..05f4ebde99d 100755 --- a/pkgfs.sh +++ b/pkgfs.sh @@ -89,19 +89,20 @@ usage() cat << _EOF $progname: [-C] [-c ] [package_name] -Targets +Targets: build Builds a package, only build phase is done. configure Configure a package, only configure phase is done. extract Extract distribution file(s) into build directory. fetch Download distribution file(s). info Show information about . - install build + configure + install into destdir + stow. - list Lists all currently ``stowned´´ packages. + install-destdir build + configure + install into destdir. + install Same than \`install-destdir´ but also stows package. + list Lists all currently \`stowned´ packages. remove Remove package completely (unstow + remove data) stow Create links in master directory. unstow Remove links in master directory. -Options +Options: -C Do not remove build directory after successful installation. -c Path to global configuration file: if not specified /usr/local/etc/pkgfs.conf is used. @@ -1129,7 +1130,7 @@ install_pkg() install_src_phase # - # Just announce that meta-template is installed and exit. + # Just register meta-template and exit. # if [ "$build_style" = "meta-template" ]; then register_pkg_handler register $pkgname $version @@ -1137,7 +1138,10 @@ install_pkg() return 0 fi - stow_pkg $pkg + # + # Do not stow package if it wasn't requested. + # + [ -z "$install_destdir_target" ] && stow_pkg $pkg } # @@ -1418,6 +1422,10 @@ info) setup_tmpl $2 info_tmpl $2 ;; +install-destdir) + install_destdir_target=yes + install_pkg $2 + ;; install) install_pkg $2 ;;