#!/bin/bash
# dev/package/contrib - Package Source Dependencies

set -e

lib_load 'dev/package/git'
lib_load 'dev/vcs'


######
# Package Source Dependencies

package_contrib_dir() { echo "$package_repodir/contrib"; }

run_in_contrib_dir() {
	local cdir
	cdir=$(package_contrib_dir)
	run_mkdir "$cdir"
	run_in_dir "$cdir" "$@"
}

# package_contrib_init() - Obtains all of the resources required to
# build/install the external source dependencies for the package.
package_contrib_init() { run_in_contrib_dir vcs_spec_clone "$@"; }

# package_contrib_update() - Updates all of the external souce dependencies.
package_contrib_update() { run_in_contrib_dir vcs_spec_update "$@"; }

# package_contrib_build() - Builds all of the external souce dependencies.
package_contrib_build() {
	:
}

# package_contrib_install() - Installs all of the external souce dependencies.
package_contrib_install() {
	:
}

# package_contrib_clean() - Cleans up all of the external souce dependencies.
package_contrib_clean() {
	:
}

View the Developer Guide Index

View the Reference Manual Index


Generated on Fri Jul 28 14:35:19 PDT 2017 by mcsh d14 v0.23.0.