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