Octoplus

Utility to create autotools scaffolding for C++ projects
c++ autotools C

Octoplus

Octoplus is a commandline utility to create autotools scaffolding for C++ projects.

get the software

git clone https://github.com/madunixman/octoplus 

install with Make

cd octoplus
./configure
make 
sudo make install

Install from DEB package

create DEB package

Octoplus comes with a script that helps generating a .deb package. It can be used as follows:

cd octoplus
./makedeb.sh

install DEB package

If you choose to generate the debian package (and you run a debian/ubuntu distribution) installing is as easy as:

sudo dpkg -i ../target/octoplus-1.0.0.deb

Use the software

To generate a new C++ project with octoplus just issue the command:

$ octoplus project genial_idea

You can see what the generated project contains:

$ cd genial_idea/
$ ls
bootstrap.sh  configure.ac  doc  etc  Makefile.am  src
$ find
.
./configure.ac
./doc
./doc/Makefile.am
./doc/README
./etc
./etc/genial_idea.conf
./etc/Makefile.am
./Makefile.am
./src
./src/genial_idea.cpp
./src/Zero.cpp
./src/Makefile.am
./src/Zero.h
./bootstrap.sh

You might compile the generated project by issuing the commands:

./bootstrap.sh
./configure && make 

And of course, you will be able to install your own project it with:

sudo make install

Provided that you are using the standard autotools, you should be able to do everything that is possible to do with autoconf and automake. For example, it is possible to install into custom directory trees, such as:

./configure --prefix=/opt/cloud && make 
sudo make install

You can see the resulting configuration:

$ find /opt/cloud/
/opt/cloud/
/opt/cloud/bin
/opt/cloud/bin/genial_idea
/opt/cloud/share
/opt/cloud/share/doc
/opt/cloud/share/doc/genial_idea
/opt/cloud/share/doc/genial_idea/README