I’m a newbie so please be tolerant. When you download a random open source package you find a directory tree which is similar in every package. It’s something like:
\
|- doc
|- m4
|- src
|- tests
Is this some kind of standard? Where can I find it’s specification? Is there any program that generates this tree in your directory for you?
There is no standard for this, let alone a specification; it’s just a convention (with many variants). Some packages have the source files directly in the top-level dir, others in
src/, still others have a directory per component.testsmight also be calledtest. However, the abbreviationsdoc(documentation) andsrc(source) are quite strongly engrained in Unix developers’ collective memory.(IDEs might make such a directory hierarchy for you, but do realize that many Unix/Linux developers, including yours truly, don’t use IDEs at all.)