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
This commit is contained in:
parent
c6da43c864
commit
c80d154fc4
20
pkgfs.sh
20
pkgfs.sh
|
@ -89,19 +89,20 @@ usage()
|
||||||
cat << _EOF
|
cat << _EOF
|
||||||
$progname: [-C] [-c <config_file>] <target> [package_name]
|
$progname: [-C] [-c <config_file>] <target> [package_name]
|
||||||
|
|
||||||
Targets
|
Targets:
|
||||||
build Builds a package, only build phase is done.
|
build Builds a package, only build phase is done.
|
||||||
configure Configure a package, only configure phase is done.
|
configure Configure a package, only configure phase is done.
|
||||||
extract Extract distribution file(s) into build directory.
|
extract Extract distribution file(s) into build directory.
|
||||||
fetch Download distribution file(s).
|
fetch Download distribution file(s).
|
||||||
info Show information about <package_name>.
|
info Show information about <package_name>.
|
||||||
install build + configure + install into destdir + stow.
|
install-destdir build + configure + install into destdir.
|
||||||
list Lists all currently ``stowned´´ packages.
|
install Same than \`install-destdir´ but also stows package.
|
||||||
|
list Lists all currently \`stowned´ packages.
|
||||||
remove Remove package completely (unstow + remove data)
|
remove Remove package completely (unstow + remove data)
|
||||||
stow Create links in master directory.
|
stow Create links in master directory.
|
||||||
unstow Remove links in master directory.
|
unstow Remove links in master directory.
|
||||||
|
|
||||||
Options
|
Options:
|
||||||
-C Do not remove build directory after successful installation.
|
-C Do not remove build directory after successful installation.
|
||||||
-c Path to global configuration file:
|
-c Path to global configuration file:
|
||||||
if not specified /usr/local/etc/pkgfs.conf is used.
|
if not specified /usr/local/etc/pkgfs.conf is used.
|
||||||
|
@ -1129,7 +1130,7 @@ install_pkg()
|
||||||
install_src_phase
|
install_src_phase
|
||||||
|
|
||||||
#
|
#
|
||||||
# Just announce that meta-template is installed and exit.
|
# Just register meta-template and exit.
|
||||||
#
|
#
|
||||||
if [ "$build_style" = "meta-template" ]; then
|
if [ "$build_style" = "meta-template" ]; then
|
||||||
register_pkg_handler register $pkgname $version
|
register_pkg_handler register $pkgname $version
|
||||||
|
@ -1137,7 +1138,10 @@ install_pkg()
|
||||||
return 0
|
return 0
|
||||||
fi
|
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
|
setup_tmpl $2
|
||||||
info_tmpl $2
|
info_tmpl $2
|
||||||
;;
|
;;
|
||||||
|
install-destdir)
|
||||||
|
install_destdir_target=yes
|
||||||
|
install_pkg $2
|
||||||
|
;;
|
||||||
install)
|
install)
|
||||||
install_pkg $2
|
install_pkg $2
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue