#!/data/data/com.termux/files/usr/bin/sh
#------------------------------------------------------------------------------
# =========                 |
# \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
#  \\    /   O peration     |
#   \\  /    A nd           | www.openfoam.com
#    \\/     M anipulation  |
#------------------------------------------------------------------------------
#     Copyright (C) 2011 OpenFOAM Foundation
#------------------------------------------------------------------------------
# License
#     This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
#
# Script
#     wmake/scripts/makeTargetDir
#
# Description
#     Makes a directory hierarchy for the given target file(s)
#
#     Usage: makeTargetDir file1 [..fileN]
#
#------------------------------------------------------------------------------

for target
do
    dir="${target%/*}"
    [ "$dir" = "$target" ] || [ -d "$dir" ] || mkdir -p "$dir"
done

#------------------------------------------------------------------------------
