Automatically create srcdir if it is missing

This commit is contained in:
Tom G. Christensen 2012-05-27 11:09:32 +02:00
parent a6007c62d5
commit 9430cf5c7e

View File

@ -391,6 +391,11 @@ unpack()
local suffix
local absfile
# Create the $srcdir if it is missing
if [ ! -d $srcdir ]; then
echo "Creating $srcdir"
${__mkdir} -p $srcdir
fi
setdir $srcdir
# If source contains an URL then first