Element: <mkdir>

Syntax


<!ELEMENT mkdir          (option?, name+)>
<!ATTLIST mkdir
          base           CDATA #IMPLIED>

This element occurs in the elements alfs, else, stage. and then

See also : option, name,

Description

The element mkdir describes the creation of one (or several) directory(ies).

The sub-elements name contains the name(s) of the directory(ies) to be created.

The attribute base gives the name of the directory in which the new directory will be created.

The only option supported is "parents". When specified, the parents directories are created as needed.

Examples


<mkdir base="/usr/local/lib">
   <option>parents</option>
   <name>X11</name>
</mkdir>

The equivalent bash script is :


cd /usr/local/lib
echo Making directory X11
mkdir -p X11