Bash shell script that generates empty C or C++ project templates.
mproj is a bash shell script that generates an empty C or C++ project that consists of two directories, src and include, and a Makefile.
It can generate the following versions:
-
C language:
- C89
- C99
- C11
-
C++ language:
- C++98
- C++11
- C++14
You just run it as normal user.
Just delete the folder.
mproj.sh [FLAG] <project-name>
In case you forget to insert a project name as your second argument, it defaults to [FLAG]_demo.
Example(s):
mproj.sh --c89 /tmp/a/directory/of/your/choice
mproj.sh -c++11
-h, --help:
It prints this help message and exit.
-c89, --c89
It generates a C project with C89 flag.
-c99, --c99
It generates a C project with C99 flag.
-c11, --c11
It generates a C project with C11 flag.
-c++98, --c++98
It generates a C++ project with C++98 flag.
-c++11, --c++11
It generates a C++ project with C++11 flag.
-c++14, --c++14
It generates a C++ project with C++14 flag.
-v, --version:
Displays project version and License.
General Public License version 3.
This program comes with absolute no warranty. You must use it at your own risk.