From f56001d87a7acfe79a4841fdb495486052b89af5 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 5 Jan 2012 19:21:44 +0100 Subject: [PATCH] implement makeCoreDirectories() --- libraries/filesystem | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/filesystem b/libraries/filesystem index 8999edf..09212c3 100644 --- a/libraries/filesystem +++ b/libraries/filesystem @@ -47,6 +47,18 @@ function download() { return ${RESULT} } +#------------------------------------------------------------------------------- +# Creates all 'core' directories necessary for EzBuild to operate +#------------------------------------------------------------------------------- +function makeCoreDirectories() { + local DIRS="${BINDIR} ${BUILDDIR} ${LOGFILE%/*} ${OVERLAYSDIR} \ + ${PACKAGESDIR} ${PORTAGESDIR} ${TEMPDIR} ${TRASHDIR}" + for DIR in ${DIRS}; do + makeDirectory ${DIR} || return 1 + done + return 0 +} + #------------------------------------------------------------------------------- # Creates all components of the specified directories # Parameters: %directory%