summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_build_dir.subr
blob: 7d8a95fd1bd377c0b8e127ea6d889ead8d300f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#
# set -o errexit -o noglob are assumed.
#

pkg_build_dir() {
	if [ ! -d "${WORKDIR}/${PKG_BUILD_DIR}" ]; then
		build_fileop mkdir "${WORKDIR}/${PKG_BUILD_DIR}";
	fi;
	build_fileop cd "${WORKDIR}/${PKG_BUILD_DIR}";
};

# vim:filetype=sh