An open API service indexing awesome lists of open source software.

https://github.com/carlowood/cwm4

cwautomacros as submodule
https://github.com/carlowood/cwm4

autogen autotools build-system cmake cwm4 git

Last synced: 6 months ago
JSON representation

cwautomacros as submodule

Awesome Lists containing this project

README

          

# cwm4 git submodule

This repository is a git submodule containing
autoconf macros and helper scripts to support
building a project that uses git submodules and
autotools or cmake.

## Checking out a project that uses the cwm4 submodule.

Please read [README_usage](https://github.com/CarloWood/cwm4/blob/master/README_usage.md).

## Adding the cwm4 submodule to a project.

To add this submodule to a project, execute the following
in the root of the project:


git submodule add https://github.com/CarloWood/cwm4.git

This should clone cwm4 into the subdirectory cwm4, or
if you already cloned it there, it should add it.

Next run:


cp cwm4/templates/autogen.sh .
./autogen.sh

and follow the instructions (if any). [autotools only:] If fixing of configure.ac
was necessary, run ./autogen.sh again until all issues are fixed.

Finally add autogen.sh to your project:


git add autogen.sh

And commit your changes.

To add support for another submodule, add a file called 'configure.m4'
to the root of that submodule -- a template for that file can be
found in [cwm4/templates/configure.m4](https://github.com/CarloWood/cwm4/blob/master/templates/configure.m4).
A more complex example can be found in the repository
[ai-xml-testsuite](https://github.com/CarloWood/ai-xml-testsuite) which
uses [this](https://github.com/CarloWood/ai-xml/blob/master/configure.m4) as configure.m4
file of the submodule [ai-xml](https://github.com/CarloWood/ai-xml).

## Cloning this project.

If you make your own clone of cwm4, make sure to set the
environment variables GIT_COMMITTER_EMAIL and
GIT_COMMITTER_NAME (and likely you also want
to set GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME)
and edit cwm4/templates/autogen.sh to use the
md5 hash of your GIT_COMMITTER_EMAIL.


echo "$GIT_COMMITTER_EMAIL" | md5sum